Initial Laravel API import
Some checks failed
continuous-integration/drone/push Build is failing

- Complete GGZ Ecademy Laravel backend application
- RESTful API for learning products, members, filters
- Authentication and authorization system
- Database migrations and seeders
- Custom CRUD generator commands
- Email notification system
- Integration with frontend applications
This commit is contained in:
Joris Slagter
2025-12-02 17:40:21 +01:00
parent 786b6b6a78
commit df155bb13d
341 changed files with 116385 additions and 2 deletions

View File

@@ -0,0 +1,47 @@
<?php
namespace App\Http\Requests\Member;
use Illuminate\Foundation\Http\FormRequest;
class AddressStore extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
"id" => 'sometimes|numeric',
"member_id" => 'required|numeric',
'indicating' => '',
'type' => 'required|max:255',
'first_name_contact_person' => '',
'last_name_contact_person' => '',
'infix' => '',
'email' => 'required_if:type,==,invoice',
'phone' => '',
'address' => '',
'postal' => '',
'city' => '',
'title_contact_person' => '',
'initials_contact_person' => '',
'middle_name_contact_person' => '',
'job_title_contact_person' => '',
'house_number' => '',
'country' => '',
];
}
}

View File

@@ -0,0 +1,31 @@
<?php
namespace App\Http\Requests\Member;
use Illuminate\Foundation\Http\FormRequest;
class BranchStore extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
"id" => 'sometimes|numeric',
"title" => 'required|max:255',
];
}
}

View File

@@ -0,0 +1,44 @@
<?php
namespace App\Http\Requests\Member;
use Illuminate\Foundation\Http\FormRequest;
class ContactStore extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
"id" => 'sometimes|numeric',
"member_id" => 'required|numeric',
'function' => '',
'salutation' => '',
'initials' => '',
'firstname' => 'required',
'middlename' => '',
'lastname' => 'required',
'email' => 'required|email',
'email2' => 'nullable|email',
'email3' => 'nullable|email',
'phone' => '',
'job_title' => '',
'mobile' => '',
'address_id' => 'nullable|numeric',
];
}
}

View File

@@ -0,0 +1,34 @@
<?php
namespace App\Http\Requests\Member;
use Illuminate\Foundation\Http\FormRequest;
class ContributionStore extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
"id" => 'sometimes|numeric',
"member_id" => 'required|numeric',
"year" => 'required|numeric',
"contribution" => 'required|numeric',
"toAll" => '',
];
}
}

View File

@@ -0,0 +1,34 @@
<?php
namespace App\Http\Requests\Member;
use Illuminate\Foundation\Http\FormRequest;
class ManagementLinkStore extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'id' => 'sometimes|numeric',
'member_id' => 'sometimes|numeric',
'title' => '',
'url' => '',
'target' => '',
];
}
}

View File

@@ -0,0 +1,60 @@
<?php
namespace App\Http\Requests\Member;
use Illuminate\Foundation\Http\FormRequest;
class MemberStore extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
"id" => 'sometimes|numeric',
"user_id" => 'sometimes|numeric',
"branch_id" => 'numeric',
"sub_branches" => '',
'type' => '',
"informal_name" => 'required|max:255',
"formal_name" => 'required|max:255',
"kvk_number" => 'required|numeric',
'website' => '',
'logo' => 'sometimes|mimes:jpeg,jpg,png|max:2048',
'show_on_website' => '',
'helpdesk_department' => '',
'helpdesk_contact_person' => '',
'helpdesk_email' => '',
'helpdesk_phone' => '',
'info_department' => '',
'info_contacteperson' => '',
'info_email' => '',
'info_phone' => '',
'info_address' => '',
'info_housenumber' => '',
'info_postal' => '',
'info_city' => '',
'info_country' => '',
'info_link' => '',
'more_info_link' => '',
'start_membership' => '',
'end_membership' => '',
'contribution' => '',
'invoice_number' => '',
];
}
}

View File

@@ -0,0 +1,33 @@
<?php
namespace App\Http\Requests\Member;
use Illuminate\Foundation\Http\FormRequest;
class RevisionStore extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
"id" => 'sometimes|numeric',
"member_id" => 'sometimes|numeric',
"user_id" => 'numeric',
"data" => 'required'
];
}
}

View File

@@ -0,0 +1,35 @@
<?php
namespace App\Http\Requests\Member;
use Illuminate\Foundation\Http\FormRequest;
class SummaryStore extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
"id" => 'sometimes|numeric',
"member_id" => 'required|numeric',
"year" => 'required|numeric',
"real_number_last_year" => 'required|numeric',
"estimated_number_next_year" => 'required|numeric',
"toAll" => '',
];
}
}