andyjessop / laravel5-starter-package
A starter package for laravel 5
Requires
- php: >=5.5.9
- laravel/framework: 5.1.*
- laravelcollective/html: 5.1.*
This package is not auto-updated.
Last update: 2024-11-13 11:26:02 UTC
README
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!"