Models and endpoints for files management
This README of generic order backend package
Package covers sample package functionality including database, routes etc.
use ins/auth >1.0.3 if needed (package ins/auth is not mandatory)
Link repository of package:
"repositories": [
{
"type": "url",
"url": "https://bitbucket.org/in-solutions/laravel-files"
}
]
and then run
composer require ins/files
php artisan vendor:publish
FOR LARAVEL >5.5 is Service Provider registered automatically by composer.json and you can skip this step.
in file app/config.php extend array by line:
"providers" => [
...
INS\Package\ServiceProvider::class,
]
in file app/Providers/EventServiceProvider.php extend array by line:
protected $subscribe = [
...
'App\Listeners\FilesSubscriber',
];
Packages can not be dependent on any project-specific application. Only allowed dependencies are allowed to other laravel packages.
Project specific actions after some functionality (Events) covered by package can be defined in Listeners published into app/Listeners folder when installing composer package.
Package Listener: app/Listeners/FilesSubscriber.php
Jakub Lajmon jakub@lajmon.name