MMusliineasylaravel.hashnode.dev·Dec 8, 2022 · 1 min readLaravel Auth: Changed Login Checking from Email to UsernameBy default, the login feature uses checking based on email instead of a username. Then what if we want to check based on username? Here's how. On the file Controller\Auth\LoginController.php add the following methods: public function username() { ...00
MMusliineasylaravel.hashnode.dev·Dec 7, 2022 · 2 min readLaravel Auth HandbookLaravel UI composer require laravel/ui //Then select the boardplate you like php artisan ui bootstrap --auth php artisan ui vue --auth php artisan ui react --auth npm install npm run dev php artisan migrate Laravel Breeze Install Breeze with Blade...00
MMusliineasylaravel.hashnode.dev·Oct 21, 2022 · 1 min readLaravel Case Study: Create Status Providing Deadline InformationImagine you have an order system for goods. Where the ordering system has a manual approval system. Then you are assigned by your manager to create a dashboard that displays the tempo status of customer orders that must be followed up by the admin. L...00
MMusliineasylaravel.hashnode.dev·Oct 21, 2022 · 1 min readLaravel Case Study: How to Extend Paginate to Data Collection in LaravelSometimes I have difficulty sorting data, for example, I want to sort data based on existing relationships with orderBy() and it doesn't work. My alternative solution tried to utilize sortBy(), this only works for data collection types. I have to run...00
MMusliineasylaravel.hashnode.dev·Oct 20, 2022 · 2 min readLaravel Case Study: Make an Accessor Calculate The Age of an Item with Month and Day in LaravelCase: In the warehouse application, display how long an item or items have been in the warehouse. model Stock.php <?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illumin...00