feat: add champion role database

This commit is contained in:
Rico van Zelst
2023-11-01 14:55:17 +01:00
parent 5849764f21
commit 509fbed10b
8 changed files with 286 additions and 0 deletions

View File

@@ -0,0 +1,66 @@
<?php
namespace App\Http\Controllers;
use App\Http\Requests\StoreChampionRolesRequest;
use App\Http\Requests\UpdateChampionRolesRequest;
use App\Models\ChampionRoles;
class ChampionRolesController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
//
}
/**
* Show the form for creating a new resource.
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*/
public function store(StoreChampionRolesRequest $request)
{
//
}
/**
* Display the specified resource.
*/
public function show(ChampionRoles $championRoles)
{
//
}
/**
* Show the form for editing the specified resource.
*/
public function edit(ChampionRoles $championRoles)
{
//
}
/**
* Update the specified resource in storage.
*/
public function update(UpdateChampionRolesRequest $request, ChampionRoles $championRoles)
{
//
}
/**
* Remove the specified resource from storage.
*/
public function destroy(ChampionRoles $championRoles)
{
//
}
}

View File

@@ -0,0 +1,28 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class StoreChampionRolesRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return false;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
//
];
}
}

View File

@@ -0,0 +1,28 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class UpdateChampionRolesRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return false;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
//
];
}
}