I am starting to learn laravel and saw two ways to return a view.
1.
return View::make('login');
2.
return view('login');
Im not sure what the advantage of View::make
is. Even after reading the API documentation. https://laravel.com/api/5.4/Illuminate/View/Factory.html#method_make
They both do the same, first one is through the use of Facade's The second one is a helper method.
Doesn't matter which one you use, just choose the syntax you prefer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With