Sistema De Gestión Del Parque Marino Del Pacífico. Our System Was Created using Laravel 5.4, Blade, InfyOm, Spatie, Boostrap, JQuery, ChartJS, BootstrapFormHelpers and few a More things.. More Info Below:::
Laravel has the most extensive and thorough documentation and video tutorial library of any modern web application framework. The Laravel documentation is thorough, complete, and makes it a breeze to get started learning the framework.
If you're not in the mood to read, Laracasts contains over 900 video tutorials on a range of topics including Laravel, modern PHP, unit testing, JavaScript, and more. Boost the skill level of yourself and your entire team by digging into our comprehensive video library.
Infyom is a Laravel CRUD generator, APIs, Test Cases and Swagger Documentation. you can find The Infyom documentation here
Spatie allows you to manage user permissions and roles in a database. You can find The Spatie documentation here
- Step 1: clone or download the repo(highly recommended clone with github in command console or Github Desktop).
- step 2: create a mySql Database on your localserver with the name
sigpma
. - step 3: duplicate the file
.env.example
and rename it.env
from your code editor. - step 4: update the next fields on your
.env
file :
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=sigpma
DB_USERNAME=(your_localhost_user)
DB_PASSWORD=(your_localhost_password)
- Optional: say a little prayer 🙏
- step 5: in your command console go to your project (
cd project_path
) and run the commandcomposer install
. - step 6: run the command
php artisan key:generate
. - step 7: run the command
php artisan migrate:refresh --seed
. - step 8: run the command
php artisan serve
. - You're ready to go... 🤘
if (true){
return 'may the force be with you'
}
- In your command console go to your project (
cd project_path
) and run the commandphp artisan infyom:scaffold $MODEL_NAME
, singular, lower case and snake_case, e.grecinto
orestanque
orestanque_pecera
- Here, you have to insert fields for you models, except id & timestamps (created_at & updated_at) fields. That will be automatically added by generator.
-
string
- $table->string('field_name') -
string,25
- $table->string('field_name', 25) -
text
- $table->text('field_name') -
integer
,false,true - $table->integer('field_name',false,true) -
string
:unique - $table->string('field_name')->unique() -
decimal
-
For foreign keys:
integer:unsigned:foreign,table_name,id
-
text
(in cases like names or short string data) -
textarea
(in cases like descriptions, comments, observations..) -
password
-
number
(in cases like integer or decimals)
.3 Type key Enter
- the console will ask you for validations, if you need more than one just put and space.
required
min:5
email
numeric
- you can use all the laravel validations
- Do the same for rest of the model fields, When you are done with inserting fields. Type "exit".
- The console will ask you if you want yo do the migrations type
y
and keyEnter
- If you get the error
In Migrator.php line 417: Class not found on migration
- (in your code editor) go to the folder database->migrations and find the file
create_your_model_name_table.php
- open it and change the class name to the name your console say can´t find.
- Run the command
php artisan migrate
orphp artisan migrate --seed
to seed the DB
- Run the command
php artisan serve
and test the model