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

Laravelの最短ページ作成流れ

Last updated at Posted at 2020-07-15

LaravelのMVCモデルの構造上、以下3つを作れば最低限のページ作成ができる。
細かい繋ぎ込みは省く。

新しく何かを使え加えるときは、以下順に記入していく。

##①routes /web.phpにルーティングを記入 
('/アドレス名','使いたいコントローラー@メソッドの名前')
 スクリーンショット 2020-07-14 23.41.42.png

##②app/Http/Controllers /コントローラー名Controller.phpにメソッドを記入
例:public function 名前(){
return view('表示したいviewsの名前')
}
スクリーンショット 2020-07-14 23.50.57.png

##③resources/views /ページ名.blade.phpにhtml文を記入
 

イメージ画像 https://miyabi-lab.space/blog/22

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?