-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
458 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,5 @@ | |
|
||
class File extends Model | ||
{ | ||
protected $guarded = []; | ||
} |
16 changes: 16 additions & 0 deletions
16
app/Http/Controllers/Dashboard/Files/CreateFileController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers\Dashboard\Files; | ||
|
||
use App\Http\Controllers\Controller; | ||
use App\Domain\File\Actions\StoreFileAction; | ||
use Inertia\Inertia; | ||
use Inertia\Response; | ||
|
||
class CreateFileController extends Controller | ||
{ | ||
public function __invoke(StoreFileAction $action): Response | ||
{ | ||
return Inertia::render('Dashboard/Files/Create'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace App\Http\Requests\Dashboard\Files; | ||
|
||
class StoreFileRequest extends \Illuminate\Foundation\Http\FormRequest | ||
{ | ||
public function authorize() | ||
{ | ||
return true; | ||
} | ||
|
||
public function rules() | ||
{ | ||
return [ | ||
'file' => 'required|image|max:2000', | ||
'description' => ['min:5'] | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.