Skip to content

Commit

Permalink
fix: fetch projects based on the current user id & fix start.sh #37
Browse files Browse the repository at this point in the history
  • Loading branch information
stevan06v committed Jan 27, 2024
1 parent 74a8bbf commit 973fa65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/Livewire/ShowProjects.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
namespace App\Livewire;

use App\Models\Project;
use Illuminate\Support\Facades\Auth;
use Livewire\Component;

class ShowProjects extends Component
{
public function render()
{
return view('livewire.show-projects',[
'projects' => Project::all()
'projects' => Project::where('user_id', Auth::user()->id)->get()
]);
}
}
4 changes: 2 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
composer install --ignore-platform-req=ext-fileinfo

# rename .env.example .env
mv .env.example .env
cp .env.example .env

# install node dependencies
npm install
Expand All @@ -17,4 +17,4 @@ php artisan migrate:fresh
npm run dev &

# start redis
docker-compose -d -f redis.yaml up
docker-compose -f redis.yaml up

0 comments on commit 973fa65

Please sign in to comment.