Skip to content

Commit aa1b1d7

Browse files
committed
ordering of category - changed
1 parent 58c6d14 commit aa1b1d7

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

Makefile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,12 @@ bash:
2828
sh:
2929
docker compose exec php-fpm /bin/sh
3030

31-
node-bash:
32-
docker compose run --rm node /bin/sh
3331
npm-i:
34-
docker compose run --rm node npm i
32+
cd app-laravel/api-laravel
33+
node npm i
3534
npx-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
4139
deploy:

app-laravel/api-laravel/app/Http/Controllers/HomeController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)