zingle-com/stash-package

Laravel的Stash包

安装量: 1,696

依赖者: 0

建议者: 0

安全性: 0

星标: 0

关注者: 4

分支: 0

开放问题: 0

类型:laravel-package

0.1.0 2019-12-05 02:58 UTC

This package is auto-updated.

Last update: 2024-09-25 09:00:40 UTC


README

为Laravel提供基本的stash绑定和辅助函数。

安装

使用composer安装基础包。

$ composer require zingle-com/stash-package

在Illuminate提供者之后,但在你的项目提供者之前,添加服务提供者到你的提供者列表中。

// config.php
// ...
	'providers' => [
		// ...
		Illuminate\Validation\ValidationServiceProvider::class,
        Illuminate\Session\SessionServiceProvider::class,
        Illuminate\Notifications\NotificationServiceProvider::class,

        /**
         * Vendors
         */
    	// ...
    	ZingleCom\Stash\StashServiceProvider::class,

    	// ...
    	/**
    	 * Project providers
    	 */
	],

最后安装供应商资产

$ php artisan vendor:publish --provider="ZingleCom\Stash\StashServiceProvider"