File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
app-laravel/api-laravel/app/Http/Controllers Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -28,14 +28,12 @@ bash:
2828sh :
2929 docker compose exec php-fpm /bin/sh
3030
31- node-bash :
32- docker compose run --rm node /bin/sh
3331npm-i :
34- docker compose run --rm node npm i
32+ cd app-laravel/api-laravel
33+ node npm i
3534npx-mix :
36- docker compose run --rm node npx mix
37- npm-run-prod :
38- docker compose run --rm node npm run prod
35+ cd app-laravel/api-laravel
36+ npx mix
3937
4038# HOST=185.255.132.6 PORT=2222 BUILD_NUMBER=1 KEY=provisioning/files/deploy_rsa make deploy
4139deploy :
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public function tag($slug)
4444 public function category ($ slug )
4545 {
4646 $ category = Category::where ('slug ' , $ slug )->firstOrFail ();
47- $ posts = $ category ->posts ()->paginate (10 );
47+ $ posts = $ category ->posts ()->orderBy ( ' created_at ' , ' desc ' )-> paginate (10 );
4848
4949 return view ('pages.list ' , [
5050 'category ' => $ category ,
You can’t perform that action at this time.
0 commit comments