方法 1,
//routs.phpRoute::get('/about',function(){$first = 'hello';return view('about')->with('a',$first);});
変数の受信
//about.blade.php{{ $a }}
方法 2,
//routs.phpRoute::get('/about',function(){$data = array('a' => 'O','b' => 'K');return view('about',$data);});
変数の受信
{{ $a }}{{ $b }}
方法 3,
//routs.phpRoute::get('/about',function(){$first = 'hello';$last = 'world';//参数名称要对应return view('about',compact('first','last'));});
変数の受信
//about.blade.php{{ $first }}{{ $last }}