How Create View file in Laravel
Views are located in the directory of resources / views. Views contain the HTML your application has served and serve as a convenient way to separate your controller logic from your logic of presentation.
Steps For How Create View file in Laravel
Step 1: Create route
Route::get('/', function()
{
return view('welcome', ['name' => 'Alex']);
});
Step 2: Create view file (resources/views) directory. file name is welcome.blade.php
<html>
<body>
<h1>Hello, <?php echo $name; ?></h1>
</body>
</html>
And if you like this tutorials please share it with your friends via Email or Social Media.