0
1

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 3 years have passed since last update.

Laravelで簡単なCMSを作成(認証)

Last updated at Posted at 2021-05-03

Laravelで簡単なCMSを作成してみます。

環境構築とデータベースのマイグレーションは以下の記事を参考にどうぞ。

今回は認証機能を追加してみます。

スターターキットで認証機能を作成

素晴らしいことにLaravelには認証機能をサクッとつくれるようにスターターキットが用意されています。Laravel breezeを使用してシンプルな認証機能を作成します。

// パッケージをインストール
composer require laravel/breeze --dev

php artisan breeze:install

npm install

npm run dev

php artisan migrate

上記のコマンドを実行するだけで、/loginにログイン画面が表示されます。ユーザーを登録するためには、/registerにアクセスします。

ログインページ
スクリーンショット 2021-05-02 013133.png

ユーザー登録ページ
スクリーンショット 2021-05-02 013118.png

記事を登録する場合は、下記の記事を参考に。

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?