New Laravel user here, having used other frameworks such as CakePHP. I'm trying to get my head around the docs and the myriad of available technologies such as Bootstrap, Blade, Vue, Fortify, Inertia, Tailwind, LIvewire and now Jetstream. I don't think it could be any more confusing to a new user!
I've set up a basic app using Jetstream, and like others had difficulty understanding where to go to edit the default logged in template. After some research found that I had to issue the following command
php artisan vendor:publish --tag=jetstream-views
This copied a number of files from
\vendor\laravel\jetstream\resources\views to \resources\views\vendor\jetstream which results in files being placed in app\resources\views\vendor\jetstream\components
Questions: Why was this process even necessary? Why, when Jetstream installed itself into the application, did it not place a copy of these components into a location where you'd expect to find them?
Question: Do I have to build all my components and then publish them in the same way?
Question: before I published the Jet components, the application still correctly rendered the page, does Laravel look in several locations for these files, and what takes precedent?
Secondly, I had a play with Laravel 7 and got my head around using @yield and @section, which seemed quite logical, and similar to what I'm used to, I but am having difficultly understanding components and the concept of {{ $header }} {{ $slot }} and things such as
The file Applayout.php in App\View\Components requests the app.blade.php file in resources\views\layouts so far so good.
In this file, it appears as though
a) navigation-dropdown.blade.php is requested via livewire?
b) {{ $header }} (somehow?) calls resources\views\dashboard.blade.php which contains ?
c) the file welcome.blade.php is requested via ?
Question: Why does this skeleton app appear to load things in three different ways?
Question: As appears to load the main welcome page, why is {{ $page }} still needed in app.blade.php?
I have read all the docs, but am still struggling to understand the above. Any help appreciated.