Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
42 | public function store(Request $request, Project $project) |
||
43 | { |
||
44 | $imagePath = $request->file('file')->store('public/images'); |
||
45 | |||
46 | $image = Intervention::make(Storage::get($imagePath))->encode('jpg', 50); |
||
47 | |||
48 | Storage::put($imagePath, $image); |
||
49 | |||
50 | $this->user->addImageToProject($project, ['path' => $imagePath]); |
||
51 | } |
||
52 | } |
||
53 |