Completed all tasks

This commit is contained in:
Thuan Bui
2025-05-11 09:47:13 +09:00
parent 5b954e6ab6
commit f97944f52e
7 changed files with 11402 additions and 1290 deletions
+2 -1
View File
@@ -11,11 +11,12 @@ class ProjectController extends Controller
{
$request->validate([
// TASK: Write the validation rule so "logo" file would be MAX 1 megabyte
'logo' => 'max:1024',
]);
// TASK: change the below line so that $filename would contain only filename
// The same filename as the original uploaded file
$filename = '???';
$filename = $request->file('logo')->getClientOriginalName();
$request->file('logo')->storeAs('logos', $filename);
Project::create([