Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laracasts-jverd/30-days-to-learn-laravel
30 days to learn Laravel
https://github.com/laracasts-jverd/30-days-to-learn-laravel
blade laravel tailwind
Last synced: 3 days ago
JSON representation
30 days to learn Laravel
- Host: GitHub
- URL: https://github.com/laracasts-jverd/30-days-to-learn-laravel
- Owner: laracasts-jverd
- Created: 2024-07-19T11:17:31.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-23T07:56:48.000Z (6 months ago)
- Last Synced: 2024-11-17T00:20:01.957Z (2 months ago)
- Topics: blade, laravel, tailwind
- Language: PHP
- Homepage:
- Size: 108 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 30 days to learn Laravel
## Run with Herd
http://laravel-course.test## Usefull commands used in the course
Sandbox for Eloquent instructions or whatever you want
```sh
php artisan tinker
```Handle migrations
```sh
php artisan make:migration # generate a new migration
php artisan migrate # execut migration
php artisan migrate:fresh # execute fresh new migration
php artisan migrate:refresh # execute only changes
```Handle seeds
```sh
php artisan migrate:fresh --seed # execute fresh new migration injecting seeds
```Generate new things
```sh
php artisan make:policy
php artisan make:factory
php artisan make:mail
php artisan make:job
```Update vendor library (in this repo for the pagination component)
```sh
php artisan vendor:publish
```List all routes in the app except default ones
```sh
php artisan route:list --except-vendor
```Queues, jobs, workers
```sh
php artisan queue:work # Call a worker to execute jobs (here the mail)
```Install Tailwind to avoid using there CDN
```sh
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p # generate config files
```Vite
```sh
npm run dev # for hot reload
vite build # built for prod environment
```