Package Data | |
---|---|
Maintainer Username: | andyjessop |
Package Create Date: | 2015-07-22 |
Package Last Update: | 2015-08-05 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-18 03:02:21 |
Package Statistics | |
---|---|
Total Downloads: | 36 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 13 |
Total Watchers: | 6 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Create packages/yourname
folder and cd
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!"