-
Notifications
You must be signed in to change notification settings - Fork 0
/
Commands.txt
37 lines (19 loc) · 1.2 KB
/
Commands.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
creation model et table: php artisan make:model Name -m
Migration: php artisan migrate:fresh
install tailwindcss: npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
install preline(ui tailwin components): npm install preline
then compile all assets: npm run dev
install livewire: composer require livewire/livewire
create livewire template: php artisan livewire:layout
create livewire component: php artisan make:livewire HomePage
fix design: npm run build
create command for admin credentials: php artisan make:command CreateAdminUser
run the command: php artisan admin:create
create custom middleware: php artisan make:middleware CheckUserRole
create table for soft deletes: php artisan make:migration adds_soft_deletes_to_historiques_table -- table=historiques
delete last migration: php artisan migrate:rollback
to not access to login : php artisan make:middleware RedirectIfAuthenticated
refresh a specific table: php artisan migrate:refresh path=database/migrations/nameOfTable.php
create test: php artisan make:test LoginTest
run test: php artisan test --filter LoginTest