Welcome To ITSolutionsGuides,
Blade is the templating engine in Laravel that allows you to write expressive, clean, and efficient templates for your web application. Laravel's Artisan command-line tool provides a convenient way to create Blade files effortlessly. Even though you can create the blade file simply by right click option using the artisan command for creating the blade file is the professional way of creating the blade file so lets see How To Create Blade File using Artisan Command In Laravel using it solutions guides.
Learn how to create blade files in Laravel with Artisan commands. creating the blade file is the professional way of creating the blade file so lets see How To Create Blade File using Artisan.
The below artisan command will create the blade files in the default views folder,
php artisan make:view dashboard
the above artisan command will create the dashboard.blade file in the location
resources/views/dashboard.blade.php
<h1>ITSolutionsGuides</h1>
The above example will create the file in the root views folder. If you want to create the blade under any subfolder you need to add the folder name also followed by the blade file name for example,
php artisan make:view home.dashboard
the above artisan command will create the dashboard.blade file in the location
resources/views/home/dashboard.blade.php
<h1>ITSolutionsGuides</h1>
We hope it helps everyone. Thanks for supporting ITSolutionsGuides and keep supporting us also follow us in social media platforms.
Be the first to know about releases and tutorial news and solutions.
We care about your data in our privacy policy.
ITSolutionsGuides was started mainly to provide good and quality web solutions for all the developers. We provide tutorials to support all the developers and also we try to provide solutions to the errors we face while coding.
Copyright © 2023 - 2024 All rights reserved | ITSolutionsGuides