dev-master
9999999-dev https://bitbucket.org/dennyvik/dvpack01Class-01 in laravel packages training
proprietary
The Requires
by Denny Viko
Wallogit.com
2017 © Pedro Peláez
Class-01 in laravel packages training
This Package is for Personal Study only., (*1)
This package have routes, controllers and view inside it's 'Vendor' Folder ('vendor\dennyvik\dvpack01\')., (*2)
Follow this step-by-step, (*3)
require this Package in your composer, (*4)
"require-dev": {
***
"dennyvik\dvpack01" : "dev-master",
***
}
run in console, (*5)
> composer update
Configuration, (*6)
add this into your Laravel project under autoload, (*7)
"autoload": {
"classmap": [
"vendor/dennyvik/dvpack01/src/migrations"
],
"psr-4": {
"Dennyvik\\Dvpack01\\":"vendor/dennyvik/dvpack01/src"
}
}
run in console, (*8)
> composer update
'providers' => [
***
Dennyvik\Dvpack01\Dvpack01ServiceProvider::class,
***
],
'aliases' => [
***
'Demo' => Dennyvik\Dvpack01\DemoFacade::class,
***
]
Run this in the console, (*9)
>php artisan vendor:publish
Dependencies, (*10)
"illuminate/support": "~5", (*11)
Database configuration, (*12)
Sample data Seeds provided in the vendors folder, you can do Seeding to your database :, (*13)
> php artisan db:seed --class=Dennyvik\Dvpack01\DemoSeeder
If Success, (*14)
Consider all running well, in this package there are some routes you can access directly from the browser's URL :, (*15)
http://localhost:8000/demo //Displaying from controller
http://localhost:8000/demo/test //Displaying directly from Routes.php
http://localhost:8000/demo/config //Displaying Config's parameter data
http://localhost:8000/demo/model //Displaying data from DB
http://localhost:8000/dvpack01 //which is a group route consist of many sub-routes. From here you can explore in the sourcecode to learn about Blade Template's Extend and Include.
// Localhost and Port should be match with your machine environtment
Deployment instructions, (*16)
* NOT FOR DEPLOYMENT !*
Class-01 in laravel packages training
proprietary