php artisan commands
php artisan
php artisan route:list
php artisan make:controller HomeController --invokable
php artisan storage:link
php artisan tinker
> storage_path()
php artisan queue:table
compser commands commands
Spatie Multi-tenancy installion commands
php artisan migrate --path=database/migrations/landlord --database=landlord
php artisan tenants:artisan "migrate:fresh --seed"
php artisan tenants:artisan "db:seed --class=SetupSeeder"
Storage file system
$request->image->store(/);
$request->image->storeAs(/, 'image.jpg');
// image folder is: storage/app/public BUT call as:
// You can change storge path from config/filesystem.php
{{asset('/storage/images/image.jpg')}}
// Delete file
Storage::delete('/storage/images/image.jpg'); // for storage folder
Storage::disk('public)->delete('/storage/images/image.jpg'); // for public folder
Storage::disk('local)->delete('/storage/images/image.jpg'); //for local disk
// Also can delete using
Fill::delete(storage_path('/app/public/images/image.jpg)); // if file system is storage folder
// or use
unlik(storage_path('/app/public/images/image.jpg));
- Sinagle Actions controllers (26)
- Stop CRF token protection (28)
- Format form errors in bootstrap (29)
- Factories (58)
- Many to Many Relationship (62)
- File Storage (63)
- Store file in storage (65)
- Storage linke (66)
- Returning file ti download (71)
- Laravel-Bootstrap Pagination: (87)
$${\color{green} Laravel-Bootstrap Pagination: (87)}$$ $${\color{green} Blade componants: (94-98)}$$ $${\color{green} Sending email: (99-102)}$$ $${\color{green} Laravel Cache: (108-114)}$$ $${\color{green} Queues (127-129)}$$
PHP Installation could not be found
- Check you php verision
- Open vs code settings
- Edit settings in json
- Open vs code settings