for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace jlourenco\storage;
use Illuminate\Support\ServiceProvider;
class storageServiceProvider extends ServiceProvider
{
/**
* Perform post-registration booting of services.
*
* @return void
*/
public function boot()
// Publish our routes
require __DIR__ . '/routes.php';
// Publish our views
$this->loadViewsFrom(base_path("resources/views"), 'storage');
$this->publishes([
__DIR__ . '/views' => base_path("resources/views")
]);
// Publish our migrations
__DIR__ . '/migrations' => base_path("database/migrations")
], 'migrations');
// Publish a config file
__DIR__ . '/config' => base_path('/config')
], 'config');
}
* Register any package services.
public function register()
// Bind the
$this->app->bind('storage', function(){
return new storage;
});