Added Category model, resource and its API.

Updated Company model to have Categories.
This commit is contained in:
2023-06-14 16:58:35 +03:00
parent 505fa2e831
commit b5a264d92f
12 changed files with 341 additions and 0 deletions
@@ -0,0 +1,28 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class StoreCategoryRequest 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|string>
*/
public function rules(): array
{
return [
//
];
}
}