Skip to content

Files

Latest commit

900dd95 · Jan 3, 2025

History

History

_workflow

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 9, 2024
Dec 9, 2024
Dec 9, 2024
Dec 9, 2024
Dec 9, 2024
Dec 9, 2024
Dec 10, 2024
Dec 10, 2024
Dec 10, 2024
Dec 9, 2024
Dec 10, 2024
Jan 3, 2025
Nov 28, 2024

README.md

First Init

( ! ) Don't follow this part if you want to initialize clonned part. Follow these steps only when you plan to create application from scratch. I just leve this part here to demonstrate what the steps I encountered.

See how Install PHP and the Laravel Installer before the init. Additional info about how to:

# install app
laravel new app

# link public storage
php artisan storage:link

# Create controllers, models, migrations, and seeders
php artisan make:model Genre --migration --seed --controller --resource --requests
php artisan make:model Movie --migration --seed --controller --resource --requests

# Create pivot model
php artisan make:model GenreMovie --migration --seed

# Create request for publishing a movie
php artisan make:request PublishMovieRequest

# Rise up migrations
php artisan migrate

# Create Views: Genres
php artisan make:view genres.index
php artisan make:view genres.create
php artisan make:view genres.edit
php artisan make:view genres.show

# Create Views: Movies
php artisan make:view movies.index
php artisan make:view movies.create
php artisan make:view movies.edit
php artisan make:view movies.show

# make API available
php artisan install:api

# Create controllers for the API
php artisan make:controller Api/V1/GenreController --api --model Genre
php artisan make:controller Api/V1/MovieController --api --model Movie

npm install
npm run build

Additional Info

# Use rollback if need
php artisan migrate:rollback

# clear cached routes
php artisan route:clear

# clear cached views
php artisan view:clear

# make available API
php artisan install:api

Init (for clonned project)

# For unix systems start:
./init

# For windows systems start:
init.cmd

Run

php artisan serve

# or

composer run dev