razan/school

dev-main 2021-08-29 23:02 UTC

This package is auto-updated.

Last update: 2024-09-29 05:50:01 UTC


README

1.在安装 school Razan 包之前,需要使用以下命令

composer require laravel/jetstream

php artisan jetstream:install livewire

composer require santigarcor/laratrust

php artisan vendor:publish --tag="laratrust-seeder"

php artisan laratrust:setup

php artisan laratrust:seeder

2.

composer require razan/school

在 config->app.php 中添加到 providers 数组

   Razan\School\SchoolServiceProvider::class,

然后在终端运行

   php artisan vendor:publish --provider="Razan\School\SchoolServiceProvider"  

在 routes-> web.php 编辑:Route::group(['namespace'=>'Razan\School\Http\Livewire']

Route::group(['namespace'=>'App\Http\Livewire']

并在 app->http->livewire 编辑命名空间从 Razan\School\Http\Livewire 更改为

    App\Http\Livewire

3.在 database/seeds/DatabaseSeeder.php 文件中

$this->call(LaratrustSeeder::class);

php artisan migrate

php artisan db:seed

4.

npm install 

npm run dev