LoginSignup
0
0

More than 5 years have passed since last update.

Laravelインストール。設定。

Posted at

インストールのコマンド

composer global require "laravel/installer"

基本の書き方

Route::get('/', function () {
    return view('index');
});

変数名

<span>{{$name}}</span>
Route::get('/confirm', function () {

    //$で変数名
    //

    return view('confirm', [
        "name" => $user,

    ]);
});
Route::get('/confirm', function () {

    //DBのユーザー名をとってくる
    $user = User::first();

    return view('confirm', [
        "name" => $user,
        "tel" => "0800000000",
    ]);
});
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