andyjessop/laravel5-starter-package

A starter package for laravel 5

dev-master 2015-08-05 10:40 UTC

This package is not auto-updated.

Last update: 2024-11-13 11:26:02 UTC


README

Installation

  1. Create packages/yourname folder and cd into it.

  2. Clone this repository:

    git clone git://github.com/andyjessop/laravel5-starter-package.git starter

  3. Change namespaces to your own in the following files:

    src/StarterServiceProvider.php Http/Controllers/TestController.php

    e.g. YourName\Starter

  4. Register service provider in yourroot/config/app.php:

    YourName\Starter\StarterServiceProvider::class

  5. Publish config:

    php artisan vendor:publish

  6. Add folder to autoload files:

    "psr-4": { "App\\": "app/", "YourName\\Starter\\": "packages/yourname/starter/src/", }

  7. Composer autoload:

    composer dump-autoload

  8. Navigate to 'starter', and you should see "Welcome to your new package!"