#Laravel #Jetstream #Livewire
I'm experimenting on developing a reactive web application with Laravel 8 and Livewire.
Livewire is a full-stack framework for Laravel that makes building dynamic interfaces simple, without leaving the comfort of Laravel.
In this video, based on the Laravel web app I created in the previous video • Laravel 8 + React Native - 用户注册与登录 - API开发 , I developed a simple feature: TODO tasks management.
The following Livewire aspects are covered in this video:
1. Making Components https://laravel-livewire.com/docs/2.x...
2. Rendering Components https://laravel-livewire.com/docs/2.x...
3. Properties https://laravel-livewire.com/docs/2.x...
4. Actions https://laravel-livewire.com/docs/2.x...
5. Events https://laravel-livewire.com/docs/2.x...
Please refer to the following PR for all the changes I made https://github.com/VeryBigWoods/sessi....
There are 2 commits in the PR.
1. Jetstream and Livewire installation https://github.com/VeryBigWoods/sessi...
2. TODO management feature https://github.com/VeryBigWoods/sessi...
It's not a thorough introduction of Livewire, but just learning/introduction by doing.
By the way, in the video, I struggled a bit on getting authenticated user object. I ended up using fascade Auth::user(). I tried to use auth() but it didn't work.
Actually auth() is the Laravel helper function. The correct way to get the authenticated user using helper function is auth()->user().
Feel free to comment and share.