积分充值
 首页
前端开发
AngularDartElectronFlutterHTML/CSSJavaScriptReactSvelteTypeScriptVue.js构建工具
后端开发
.NetC#C++C语言DenoffmpegGoIdrisJavaJuliaKotlinLeanMakefilenimNode.jsPascalPHPPythonRISC-VRubyRustSwiftUML其它语言区块链开发测试微服务敏捷开发架构设计汇编语言
数据库
Apache DorisApache HBaseCassandraClickHouseFirebirdGreenplumMongoDBMySQLPieCloudDBPostgreSQLRedisSQLSQLiteTiDBVitess数据库中间件数据库工具数据库设计
系统运维
AndroidDevOpshttpdJenkinsLinuxPrometheusTraefikZabbix存储网络与安全
云计算&大数据
Apache APISIXApache FlinkApache KarafApache KyuubiApache OzonedaprDockerHadoopHarborIstioKubernetesOpenShiftPandasrancherRocketMQServerlessService MeshVirtualBoxVMWare云原生CNCF机器学习边缘计算
综合其他
BlenderGIMPKiCadKritaWeblate产品与服务人工智能亿图数据可视化版本控制笔试面试
文库资料
前端
AngularAnt DesignBabelBootstrapChart.jsCSS3EchartsElectronHighchartsHTML/CSSHTML5JavaScriptJerryScriptJestReactSassTypeScriptVue前端工具小程序
后端
.NETApacheC/C++C#CMakeCrystalDartDenoDjangoDubboErlangFastifyFlaskGinGoGoFrameGuzzleIrisJavaJuliaLispLLVMLuaMatplotlibMicronautnimNode.jsPerlPHPPythonQtRPCRubyRustR语言ScalaShellVlangwasmYewZephirZig算法
移动端
AndroidAPP工具FlutterFramework7HarmonyHippyIoniciOSkotlinNativeObject-CPWAReactSwiftuni-appWeex
数据库
ApacheArangoDBCassandraClickHouseCouchDBCrateDBDB2DocumentDBDorisDragonflyDBEdgeDBetcdFirebirdGaussDBGraphGreenPlumHStreamDBHugeGraphimmudbIndexedDBInfluxDBIoTDBKey-ValueKitDBLevelDBM3DBMatrixOneMilvusMongoDBMySQLNavicatNebulaNewSQLNoSQLOceanBaseOpenTSDBOracleOrientDBPostgreSQLPrestoDBQuestDBRedisRocksDBSequoiaDBServerSkytableSQLSQLiteTiDBTiKVTimescaleDBYugabyteDB关系型数据库数据库数据库ORM数据库中间件数据库工具时序数据库
云计算&大数据
ActiveMQAerakiAgentAlluxioAntreaApacheApache APISIXAPISIXBFEBitBookKeeperChaosChoerodonCiliumCloudStackConsulDaprDataEaseDC/OSDockerDrillDruidElasticJobElasticSearchEnvoyErdaFlinkFluentGrafanaHadoopHarborHelmHudiInLongKafkaKnativeKongKubeCubeKubeEdgeKubeflowKubeOperatorKubernetesKubeSphereKubeVelaKumaKylinLibcloudLinkerdLonghornMeiliSearchMeshNacosNATSOKDOpenOpenEBSOpenKruiseOpenPitrixOpenSearchOpenStackOpenTracingOzonePaddlePaddlePolicyPulsarPyTorchRainbondRancherRediSearchScikit-learnServerlessShardingSphereShenYuSparkStormSupersetXuperChainZadig云原生CNCF人工智能区块链数据挖掘机器学习深度学习算法工程边缘计算
UI&美工&设计
BlenderKritaSketchUI设计
网络&系统&运维
AnsibleApacheAWKCeleryCephCI/CDCurveDevOpsGoCDHAProxyIstioJenkinsJumpServerLinuxMacNginxOpenRestyPrometheusServertraefikTrafficUnixWindowsZabbixZipkin安全防护系统内核网络运维监控
综合其它
文章资讯
 上传文档  发布文章  登录账户
IT文库
  • 综合
  • 文档
  • 文章

无数据

分类

全部后端开发(8)PHP(8)Laravel(8)

语言

全部中文(简体)(5)英语(3)

格式

全部PDF文档 PDF(8)
 
本次搜索耗时 0.401 秒,为您找到相关结果约 8 个.
  • 全部
  • 后端开发
  • PHP
  • Laravel
  • 全部
  • 中文(简体)
  • 英语
  • 全部
  • PDF文档 PDF
  • 默认排序
  • 最新排序
  • 页数排序
  • 大小排序
  • 全部时间
  • 最近一天
  • 最近一周
  • 最近一个月
  • 最近三个月
  • 最近半年
  • 最近一年
  • pdf文档 Learning Laravel

    Each role may belongs to many permissions and each permission may belongs to many role. so there will be 3 tables. two models and one pivot table. a roles, users and permission_role table. Role Model to use role_permission instead of permission_role, as eloquent uses alphabetic order for building the pivot key names. you will need to pass pivot table name as second parameter as follows. Role Model $this->belongsToMany(Permission::class, 'role_permission'); } Permission Model public function roles() { return $this->belongsToMany(Roles::class, 'role_permission'); } Note: 2 consider following
    0 码力 | 216 页 | 1.58 MB | 1 年前
    3
  • pdf文档 Laravel 3.2 Documentation

    concatenated with an underscore. For example, if the relationship is between User and Role, the intermediate table name should be role_user. Remove Eloquent bundle. If you are using the Eloquent bundle with function() { // })); Passing parameters to filters: Route::get('panel', array('before' => 'role:admin', function() { // })); Pattern Filters Sometimes you may want to attach a filter User has many Roles, but a Role can also belong to many Users. Three database tables must be created to accomplish this relationship: a users table, a roles table, and a role_user table. The structure
    0 码力 | 139 页 | 1.13 MB | 1 年前
    3
  • pdf文档 Laravel 5.0 Documentation

    'John')->pluck('name'); $roles = DB::table('roles')->lists('title'); This method will return an array of role titles. You may also specify a custom key column for the returned array: $roles = DB::table('roles')->lists('title' users. For example, many users may have the role of "Admin". Three database tables are needed for this relationship: users , roles , and role_user . The role_user table is derived from the One To Many Relation Many To Many alphabetical order of the related model names, and should have user_id and role_id columns. We can define a many-to-many relation using the belongsToMany method: class User
    0 码力 | 242 页 | 1.44 MB | 1 年前
    3
  • pdf文档 Laravel 5.6 中文文档

    string $role * @return mixed * translator http://laravelacademy.org */ public function handle($request, Closure $next, $role) { if (! $request->user()->hasRole($role)) { 分隔中间件名和参数名来指定,多个中间件参数可以通过逗号分隔: Route::put('post/{id}', function ($id) { // })->middleware('role:editor'); 根据上面的演示示例,这个功能实现起来也比较简单,就不再单独演示了。 终端中间件 终端中间件,可以理解为一个善后的后台处理中间件。有时候中间件可能需要在 HTTP 方法实现: $role = $request->input('role'); $users = DB::table('users') ->when($role, function ($query) use ($role) { return $query->where('role_id', $role);
    0 码力 | 377 页 | 14.56 MB | 1 年前
    3
  • pdf文档 Laravel 6.0 中文文档

    $next * @param string $role * @return mixed * translator https://xueyuanjun.com */ public function handle($request, Closure $next, $r ole) { if (! $request->user()->hasRole($role)) { // Redirect.. : 分隔中间件名和参数名来指定, 多个中间件参数可以通过逗号分隔: Route::put('post/{id}', function ($id) { // })->middleware('role:editor'); 根据上面的演示示例,这个功能实现起来也比较简单,就不再单独演 示了。 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun t->all(), [ 'role_id' => Rule::requiredIf($request->user()->is _admin), 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 354 ]); Validator::make($request->all(), [ 'role_id' => Rule::requiredIf(function
    0 码力 | 1442 页 | 14.66 MB | 1 年前
    3
  • pdf文档 Laravel 5.1 中文文档

    * @param string $role * @return mixed */ public function handle($request, Closure $next, $role) { if (! $request->user()->hasRole($role)) { // 跳转... 逗号进行分隔: 本文档由 Laravel 学院(LaravelAcademy.org)提供 3 Route::put('post/{id}', ['middleware' => 'role:editor', functio n ($id) { // }]); 更多关于中间件的内容,请查看中间件一节。 测试革新 Laravel 中内置的测试功能获得了引入注目的 string $role * @return mixed * translator http://laravelacademy.org */ public function handle($request, Closure $next, $role) { if (! $request->user()->hasRole($role)) {
    0 码力 | 307 页 | 3.46 MB | 1 年前
    3
  • pdf文档 Laravel 5.3 中文文档

    $next * @param string $role * @return mixed * translator http://laravelacademy.org */ public function handle($request, Closure $next, $role) { if (! $re $request->user()->hasRole($role)) { // Redirect... } return $next($request); } } 中间件参数可以在定义路由时通过:分隔中间件名和参数名来指定,多个中间件参数可以通过逗 号分隔: 本文档由 Laravel 学院(LaravelAcademy 学院致力于提供优质 Laravel 中文学习资源 118 Route::put('post/{id}', function ($id) { // })->middleware('role:editor'); 5、可终止的中间件 有时候中间件可能需要在 HTTP 响应发送到浏览器之后做一些工作。比如,Laravel 内置的 “session”中间件会在响应发送到浏览器之后将
    0 码力 | 691 页 | 9.37 MB | 1 年前
    3
  • pdf文档 Laravel 5.2 中文文档

    $next * @param string $role * @return mixed * translator http://laravelacademy.org */ public function handle($request, Closure $next, $role) { if (! $re $request->user()->hasRole($role)) { // Redirect... } return $next($request); } } 中间件参数可以在定义路由时通过:分隔中间件名和参数名来指定,多个中间件参数可以 通过逗号分隔: Route::put('post/{id}' , ['middleware' => 'role:editor', function ($id) { // }]); 5、可终止的中间件 有时候中间件可能需要在 HTTP 响应发送到浏览器之后做一些工作。比如,Laravel 内置 的“session”中间件会在响应发送到浏览器之后将 Session 数据写到存储器中,为了实现 这个,定义一个可终止的中间件并添加 terminate
    0 码力 | 377 页 | 4.56 MB | 1 年前
    3
共 8 条
  • 1
前往
页
相关搜索词
LearningLaravel3.2Documentation5.05.6中文文档6.05.15.35.2
IT文库
关于我们 文库协议 联系我们 意见反馈 免责声明
本站文档数据由用户上传或本站整理自互联网,不以营利为目的,供所有人免费下载和学习使用。如侵犯您的权益,请联系我们进行删除。
IT文库 ©1024 - 2025 | 站点地图
Powered By MOREDOC AI v3.3.0-beta.70
  • 关注我们的公众号【刻舟求荐】,给您不一样的精彩
    关注我们的公众号【刻舟求荐】,给您不一样的精彩