![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
laravel
文章平均质量分 89
etdragon
这个作者很懒,什么都没留下…
展开
-
使用Laravel实现用户角色权限管理(laravel 10)
如果有需要,运行以下命令获取config/permission.php中的配置文件和迁移文件。使用下面列出的种子程序添加一组固定的权限。接下来,使用Laravel UI命令在Laravel 10中生成授权脚手架。为ACL功能安装Spatie包以使用它的方法,同时安装表单集合包。打开您的终端并执行以下命令。接下来为用户模块、产品模块和角色模块添加三个控制器。现在应该会看到permission.php文件和迁移文件。运行以下命令来创建一个新的Laravel项目。文件,添加自动加载服务器和别名。原创 2023-06-05 15:10:07 · 1863 阅读 · 1 评论 -
Laravel db:seed 报错 [ReflectionException] Class XXX does not exist
转自:https://www.sunzhongwei.com/laravel-db-seed-error-reflectionexception-class-xxx-does-not-exist修改了 Laravel Backpack Settings 自带的 seeder 导入测试数据时,报错php artisan db:seed --class=SettingsTableSeeder...转载 2019-06-05 21:27:17 · 1040 阅读 · 0 评论 -
laravel 数据库操作(表、字段)
转自:https://www.cnblogs.com/tujia/p/6279287.html1)创建表(make:migration create),例如创建 articlesphp artisan make:migration create_articles_table运行命令后,会在 /database/migrations/ 生成对应的数据库迁移文件,通过修改文件里的 ...转载 2019-06-05 21:38:13 · 231 阅读 · 0 评论 -
unguard / reguard 这二个方法怎么理解?
转自:https://learnku.com/laravel/t/9998/how-do-the-two-methods-of-unguard-reguard-understand Model::unguard(); $this->call(UsersTableSeeder::class); Model::reguard();简单来说,是临时取消批量赋值...转载 2019-06-05 22:12:53 · 908 阅读 · 0 评论