Created Resume component model
Some checks failed
linter / quality (push) Successful in 3m16s
tests / ci (push) Failing after 6m21s

This commit is contained in:
2025-08-16 13:13:00 +02:00
parent e3444ef799
commit fb3a5be414
6 changed files with 237 additions and 0 deletions

View File

@@ -0,0 +1,66 @@
<?php
namespace App\Http\Controllers;
use App\Http\Requests\StoreResumeComponentRequest;
use App\Http\Requests\UpdateResumeComponentRequest;
use App\Models\ResumeComponent;
class ResumeComponentController 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(StoreResumeComponentRequest $request)
{
//
}
/**
* Display the specified resource.
*/
public function show(ResumeComponent $resumeComponent)
{
//
}
/**
* Show the form for editing the specified resource.
*/
public function edit(ResumeComponent $resumeComponent)
{
//
}
/**
* Update the specified resource in storage.
*/
public function update(UpdateResumeComponentRequest $request, ResumeComponent $resumeComponent)
{
//
}
/**
* Remove the specified resource from storage.
*/
public function destroy(ResumeComponent $resumeComponent)
{
//
}
}

View File

@@ -0,0 +1,28 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class StoreResumeComponentRequest 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 UpdateResumeComponentRequest 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,19 @@
<?php
namespace App\Models;
use App\Policies\ResumeComponentPolicy;
use Illuminate\Database\Eloquent\Attributes\UsePolicy;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
#[UsePolicy(ResumeComponentPolicy::class)]
class ResumeComponent extends Model
{
/** @use HasFactory<\Database\Factories\ResumeComponentFactory> */
use HasFactory;
protected $fillable = [
'vue_component_name',
];
}

View File

@@ -0,0 +1,66 @@
<?php
namespace App\Policies;
use App\Models\ResumeComponent;
use App\Models\User;
use Illuminate\Auth\Access\Response;
class ResumeComponentPolicy
{
/**
* Determine whether the user can view any models.
*/
public function viewAny(User $user): bool
{
return false;
}
/**
* Determine whether the user can view the model.
*/
public function view(User $user, ResumeComponent $resumeComponent): bool
{
return false;
}
/**
* Determine whether the user can create models.
*/
public function create(User $user): bool
{
return false;
}
/**
* Determine whether the user can update the model.
*/
public function update(User $user, ResumeComponent $resumeComponent): bool
{
return false;
}
/**
* Determine whether the user can delete the model.
*/
public function delete(User $user, ResumeComponent $resumeComponent): bool
{
return false;
}
/**
* Determine whether the user can restore the model.
*/
public function restore(User $user, ResumeComponent $resumeComponent): bool
{
return false;
}
/**
* Determine whether the user can permanently delete the model.
*/
public function forceDelete(User $user, ResumeComponent $resumeComponent): bool
{
return false;
}
}