0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

laravel10 tinkerを使用してデータを挿入してみる

Posted at

対象

laravel10 初学者

前提条件

Userテーブル作成済みであること。

tinkerの入り方

> php artisan tinker

Userテーブルの挿入方法

> $model = new User();
> $model->name = 'Admin';
> $model->email = 'admin@example.com';
> $model->password = Hash::make('admin');

$model->save();

※ユーザー追加ごとに以下を実行する。
$model = new User();

以上です。

募集

Laravelで便利比較的カスタマイズしやすいscaffoldできるコンポートネントがあれば教えてください。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?