[Vuejs]-Laravel โ€“ Parse Blade to Vue Component

1๐Ÿ‘

I found a solution. I will create a base vue layout. Then when page load i redirect to the login component and load base layout (importing as a local component). Then when redirect to other page (for example a component with drawer) i will load this component but will load the base layout too.

To help to do that i will use Vue slots. I see how works here. The video is in spanish but i think we can understands it.

0๐Ÿ‘

As per the documentation, this is included as of Laravel 5.7

You generate scaffolding and publish the components with:

composer require laravel/ui "^1.0" --dev

php artisan ui vue --auth

It will get you started with an example component so see how you can call that from a blade template.

https://laravel.com/docs/6.x/authentication#included-routing

https://laravel.com/docs/6.x/authentication#included-views

๐Ÿ‘คjeremykenedy

Leave a comment