smorken/storage
最新稳定版本:v10.2.0
Composer 安装命令:
composer require smorken/storage
包简介
Laravel 9 storage provider
README 文档
README
License
This software is open-sourced software licensed under the MIT license
The Laravel framework is open-sourced software licensed under the MIT license
Use
If you use the default storage config of config/storage.php, the service provider can be automatically loaded via
composer.
If you want to load your own, disable the automatic loading of Smorken\Storage\ServiceProvider in your project's
composer.json and create App\Providers\StorageServiceProvider that extends Smorken\Storage\ServiceProvider.
Add the service provider to config/app.php
'providers' => [
...
App\Providers\StorageServiceProvider::class,
...
Config
Create a config/storage.php with contents similar to the following:
<?php
return [
'concrete' => [
\App\Storage\Eloquent\Menu::class => [
'model' => [
'impl' => \App\Models\Eloquent\Menu::class,
'params' => [],
],
],
],
'contract' => [
\App\Contracts\Storage\Menu::class => \App\Storage\Eloquent\Menu::class,
],
];
App\Contracts\Storage\Menu
<?php
interface Menu extends \Smorken\Storage\Contracts\Base
{
//contents
}
App\Storage\Eloquent\Menu
<?php
class Menu extends \Smorken\Storage\Eloquent implements \App\Contracts\Storage\Menu
{
//contents
}
App\Contracts\Models\Menu
<?php
interface Menu extends \Smorken\Model\Contracts\Model
{
//contents
}
App\Models\Eloquent\Menu
<?php
class Menu extends \Smorken\Model\Eloquent implements \App\Contracts\Models\Menu
{
//contents
}
统计信息
- 总下载量: 3.9k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 10
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-08-15