Skip to content

TerrePorter/LaravelFrameworkLoader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LaravelFrameworkLoader

Extension to Laravel 5 application to support custom paths

In bootstrap\app update the application to use the loader extension.

// these are all optional, and are the defaults

$app = new Wpb\Laravel_Framework_Loader\Application (
    [
        'base' => realpath(__DIR__.'/../'),
        'config' => realpath(__DIR__.'/../config'),
        'database' => realpath(__DIR__.'/../database'),
        'lang' => realpath(__DIR__.'/../resources/lang'),
        'public' => realpath(__DIR__.'/../../public'),
        'storage' => realpath(__DIR__.'/../storage')
    ]
);

Update composer.json file.

Add to require section

"require": {
	"wpb/laravel_framework_loader": "1.*@dev",
}

Add git to repositories section

"scripts": { ... },
"repositories": [ 
	{
		"name": "wpb/laravel_framework_loader",
		"type": "git",
		"url": "https://github.com/TerrePorter/LaravelFrameworkLoader.git"
	}
],

About

Extension to Laravel 5 application to support custom paths

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages