initial commit
This commit is contained in:
commit
28301e4312
219 changed files with 23035 additions and 0 deletions
32
app/Http/Requests/BookRequest.php
Executable file
32
app/Http/Requests/BookRequest.php
Executable file
|
@ -0,0 +1,32 @@
|
|||
<?php namespace App\Http\Requests;
|
||||
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
class BookRequest extends Request {
|
||||
|
||||
/**
|
||||
* 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 [
|
||||
'title' => 'required|min:5',
|
||||
'author' => 'required|min:4',
|
||||
'stock' => 'required|integer',
|
||||
'year' => 'required|integer|min:4'
|
||||
];
|
||||
}
|
||||
|
||||
}
|
31
app/Http/Requests/CategoryRequest.php
Executable file
31
app/Http/Requests/CategoryRequest.php
Executable file
|
@ -0,0 +1,31 @@
|
|||
<?php namespace App\Http\Requests;
|
||||
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
class CategoryRequest extends Request {
|
||||
|
||||
/**
|
||||
* 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 [
|
||||
|
||||
'category' => 'required|min:3'
|
||||
|
||||
];
|
||||
}
|
||||
|
||||
}
|
30
app/Http/Requests/FinesRequest.php
Executable file
30
app/Http/Requests/FinesRequest.php
Executable file
|
@ -0,0 +1,30 @@
|
|||
<?php namespace App\Http\Requests;
|
||||
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
class FinesRequest extends Request {
|
||||
|
||||
/**
|
||||
* 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 [
|
||||
'days' => 'required|integer',
|
||||
'fines' => 'required|integer'
|
||||
];
|
||||
}
|
||||
|
||||
}
|
29
app/Http/Requests/PeminjamanRequest.php
Executable file
29
app/Http/Requests/PeminjamanRequest.php
Executable file
|
@ -0,0 +1,29 @@
|
|||
<?php namespace App\Http\Requests;
|
||||
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
class PeminjamanRequest extends Request {
|
||||
|
||||
/**
|
||||
* 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 [
|
||||
//
|
||||
];
|
||||
}
|
||||
|
||||
}
|
29
app/Http/Requests/PeriodeRequest.php
Executable file
29
app/Http/Requests/PeriodeRequest.php
Executable file
|
@ -0,0 +1,29 @@
|
|||
<?php namespace App\Http\Requests;
|
||||
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
class PeriodeRequest extends Request {
|
||||
|
||||
/**
|
||||
* 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 [
|
||||
'days' => 'required|integer'
|
||||
];
|
||||
}
|
||||
|
||||
}
|
9
app/Http/Requests/Request.php
Executable file
9
app/Http/Requests/Request.php
Executable file
|
@ -0,0 +1,9 @@
|
|||
<?php namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
abstract class Request extends FormRequest {
|
||||
|
||||
//
|
||||
|
||||
}
|
29
app/Http/Requests/ShelfRequest.php
Executable file
29
app/Http/Requests/ShelfRequest.php
Executable file
|
@ -0,0 +1,29 @@
|
|||
<?php namespace App\Http\Requests;
|
||||
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
class ShelfRequest extends Request {
|
||||
|
||||
/**
|
||||
* 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 [
|
||||
'shelf' => 'required'
|
||||
];
|
||||
}
|
||||
|
||||
}
|
31
app/Http/Requests/StudentRequest.php
Executable file
31
app/Http/Requests/StudentRequest.php
Executable file
|
@ -0,0 +1,31 @@
|
|||
<?php namespace App\Http\Requests;
|
||||
|
||||
use App\Http\Requests\Request;
|
||||
|
||||
class StudentRequest extends Request {
|
||||
|
||||
/**
|
||||
* 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 [
|
||||
|
||||
'name' => 'required|min:5'
|
||||
|
||||
];
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue