Awesome
Starter package for Laravel 5
Installation
-
Create
packages/yourname
folder andcd
into it. -
Clone this repository:
git clone git://github.com/andyjessop/laravel5-starter-package.git starter
-
Change namespaces to your own in the following files:
src/StarterServiceProvider.php
Http/Controllers/TestController.php
e.g. YourName\Starter
-
Register service provider in
yourroot/config/app.php
:YourName\Starter\StarterServiceProvider::class
-
Publish config:
php artisan vendor:publish
-
Add folder to autoload files:
"psr-4": { "App\\": "app/", "YourName\\Starter\\": "packages/yourname/starter/src/", }
-
Composer autoload:
composer dump-autoload
-
Navigate to 'starter', and you should see "Welcome to your new package!"