2017 © Pedro Peláez
 

library dvpack01

Class-01 in laravel packages training

image

dennyvik/dvpack01

Class-01 in laravel packages training

  • Thursday, April 27, 2017
  • by dennyvik
  • Repository
  • 0 Watchers
  • 0 Stars
  • 4 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

README

This Package is for Personal Study only., (*1)

This package have routes, controllers and view inside it's 'Vendor' Folder ('vendor\dennyvik\dvpack01\')., (*2)

What is this repository for?

  • For Laravel training on Topic : Packages
  • Version : dev-master

How do I get set up?

  • 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)

    composer.json
    • 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
    config\app.php
        'providers' => [
                    ***
    
                    Dennyvik\Dvpack01\Dvpack01ServiceProvider::class,
    
                    ***
            ],
    
            'aliases' => [
                    ***
    
                    'Demo' => Dennyvik\Dvpack01\DemoFacade::class,
    
                    ***
            ]
    Console

    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 !* 

The Versions

27/04 2017

dev-master

9999999-dev https://bitbucket.org/dennyvik/dvpack01

Class-01 in laravel packages training

  Sources   Download

proprietary

The Requires

 

by Denny Viko