php artisan make:controller PostController --model=Post --api
Route::apiResource('posts', PostController::class);
php artisan make:controller PostController --model=Post --api
Route::apiResource('posts', PostController::class);
php artisan make:controller UserController --model=User
php artisan make:controller PostController --model=Post
Route::resources([
'users' => UserController::class,
'posts' => PostController::class,
]);
sudo apt install ncal
cal
service mysql status
service nginx status
service --status-all
grep -ir "text" directory1 directory2 directory3 ...
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash - &&
sudo apt-get install -y nodejs &&
node -v && npm -v
round(3.1415926, 2);
git restore .