This repository has been archived by the owner on Apr 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/rats4final/citas
- Loading branch information
Showing
26 changed files
with
986 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace App\Http\Requests; | ||
|
||
use Illuminate\Foundation\Http\FormRequest; | ||
|
||
class EditHistorialRequest extends FormRequest | ||
{ | ||
public function authorize() | ||
{ | ||
return true; | ||
} | ||
|
||
public function rules() | ||
{ | ||
return [ | ||
'detalles_historial' => 'required|string|min:20|max:255', | ||
]; | ||
} | ||
public function messages() | ||
{ | ||
return [ | ||
'detalles_historial.required' => 'Es necesesario que tenga datos en estte campo', | ||
'detalles_historial.min' => 'Los detalles minimamente deben tener mas de 20 caracteres', | ||
'detalles_historial.max' => 'Los detalles no deben superar los 255 caracteres' | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
namespace App\Http\Requests; | ||
|
||
use Illuminate\Foundation\Http\FormRequest; | ||
|
||
class EditSedeRequest extends FormRequest | ||
{ | ||
public function authorize() | ||
{ | ||
return true; | ||
} | ||
|
||
public function rules() | ||
{ | ||
return [ | ||
'nombre_sede' => 'required|string|min:10|max:100', | ||
'direccion_sede' => 'required|string|min:10|max:120', | ||
'telefono_sede' => 'required|integer|min:8' | ||
|
||
]; | ||
} | ||
public function messages() | ||
{ | ||
return [ | ||
'nombre_sede.required' => 'Es neceserio que este campo este llenado', | ||
'nombre_sede.min' => 'El nombre minimamente debe tener mas de 10 caracteres', | ||
'nombre_sede.max' => 'El nombre no debe superar los 120 caracteres', | ||
|
||
'direccion_sede.required' => 'Es neceserio que este campo este llenado', | ||
'direccion_sede.min' => 'La dirrecion minimamente debe tener mas de 10 caracteres', | ||
'direccion_sede.max' => 'La dirrecion no debe superar los 120 caracteres', | ||
|
||
'telefono_sede.required' => 'Es neceserio que este campo este llenado', | ||
'telefono_sede.integer' => 'Debe ser un numero no una palabra', | ||
'telefono_sede.min' => 'El telefono minimamente debe tener 8 numeros', | ||
'telefono_sede.max' => 'El telefono maximo debe tener 10 numeros' | ||
|
||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace App\Http\Requests; | ||
|
||
use Illuminate\Foundation\Http\FormRequest; | ||
|
||
class StoreHistorialRequest extends FormRequest | ||
{ | ||
|
||
public function authorize() | ||
{ | ||
return true; | ||
} | ||
|
||
public function rules() | ||
{ | ||
return [ | ||
'detalles_historial' => 'required|string|min:20|max:255', | ||
]; | ||
} | ||
public function messages() | ||
{ | ||
return [ | ||
'detalles_historial.required' => 'Es necesesario que tenga datos en estte campo', | ||
'detalles_historial.min' => 'Los detalles minimamente deben tener mas de 20 caracteres', | ||
'detalles_historial.max' => 'Los detalles no deben superar los 255 caracteres' | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.