积分充值
 首页
前端开发
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文库
  • 综合
  • 文档
  • 文章

无数据

分类

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

语言

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

格式

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

    中,获取并提供自定义授权消息给终端用户 很困难,主要难点在于如何向终端用户解释清楚为什么特定的请求被 拒绝了。在 Laravel 6.0 中,我们可以使用 Gate::inspect 方法和 授权响应消息来轻松实现。例如,给定如下策略方法: /** * 判断用户是否可以查看指定的航班. * * @param \App\User $user * @param \App\Flight $flight 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 4 接下来我们可以通过 Gate::inspect 方法获取授权策略的响应,然 后再通过响应示例的 message() 方法获取授权消息: $response = Gate::inspect('view', $flight); if ($response->allowed()) { $this->authorize 或 者 Gate::authorize 方法时,这些自定义的消息会被自动返回给前 端。 任务中间件 任务中间件允许你封装自定义的队列任务异常业务逻辑,避免在任务 自身处理中混入对应样板代码。例如,在之前的 Laravel 版本中, 你可能需要在频率限制回调中封装某个任务的 handle 方法处理逻 辑: /** * 执行任务 本文档由学院君提供 学院君致力于提供优质
    0 码力 | 1442 页 | 14.66 MB | 1 年前
    3
  • pdf文档 Laravel 5.6 中文文档

    任 务调度器运行在三个服务器上,这个调度任务就会在三台机器上运行并生成同样的报告三次,这样很不优雅,甚至很糟糕! 要指定任务只在一台机器上运行,可以在定义调度任务时使用 onOneServer 方法,第一台获取到任务的机器会给这个任务上一把原子级别的锁来阻 止其他服务器同时运行同一个任务: $schedule->command('report:generate') annel; Broadcast::channel('order.{order}', OrderChannel::class); 最后,可以将频道的授权逻辑放到频道类的 join 方法。join 方法中的代码等同于之前位于频道授权闭包中的处理逻辑。当然,你还可以使用频道模 型绑定: user_id; } } API 控制器生成 声明被 API 消费的资源控制器时,通常你会排除输出 HTML 模板的路由,例如 create 和 edit,要生成不包含这些方法的资源控制器,可以在使 用 Artisan 命令执行 make:controller 时使用 --api 开关: php artisan make:controller API/PhotoController
    0 码力 | 377 页 | 14.56 MB | 1 年前
    3
  • pdf文档 Laravel 5.2 中文文档

    Laravel 5.1 中,你需要通过 Route::model 方法告诉 Laravel 注入 App\User 实例以匹 配路由定义中的 {user} 参数。 现在,在 Laravel 5.2 中,框架将会基于相应 URI 片段自动注入模型,从而允许你快速 访问需要的模型实例。 如果路由参数片段 {user} 匹配路由闭包或控制器方法中相应变量 $user,并且被类型声明 为一个 Eloquent API 时这一特性很有用,你可以 将 session 和 csrf 路由分组到一个 web 组,或者将访问频率限制分组到 api 中。 实际上,默认的 Laravel 5.2 应用结构采用的正是这个方法。例如,在默认 的 App\Http\Kernel.php 文件中你会看到如下内容: /** * The application's route middleware groups. 4 Eloquent 全局作用域优化 在之前的 Laravel 版本,Eloquent 全局作用域的实现是复杂且容易出错的,但在 Laravel 5.2 中,全局查询作用域只需实现一个简单的方法 apply 即可。 关于全局作用域详情请查看全局作用域文档。 升级指南 从 5.1 升级到 5.2.0 更新依赖 更新 composer.json 文件指向 laravel/framework
    0 码力 | 377 页 | 4.56 MB | 1 年前
    3
  • pdf文档 Laravel 5.1 中文文档

    'role:editor', functio n ($id) { // }]); 更多关于中间件的内容,请查看中间件一节。 测试革新 Laravel 中内置的测试功能获得了引入注目的提升,多个新方法提供了平滑的,富有变现力 的接口和应用进行交互并测试响应: public function testNewUserRegistration(){ $this->visit('/register') 5 然后,Laravel 5.0 中使用的 App\Services\Registrar 不再被需要,你可以直接简单拷贝粘 贴其中的 validator 方法和 create 方法到 AuthController 中,这两个方法中的代码不需要 做任何改动。不要忘记确认 Validator 和 User 在 AuthController 中是否已经被导入。 PasswordController formatValidationErrors 方法,需要将类型提示由 Illuminate\Validation\Validator 改为 Illuminate\Contracts\Validation\Validator。 Eloquent create 方法 Eloquent 的 create 方法现在可以不传入任何参数进行调用,如果你在模型中要重写 create 方法,将$attributes 参数的默认值改为数组:
    0 码力 | 307 页 | 3.46 MB | 1 年前
    3
  • pdf文档 Laravel 5.3 中文文档

    注:Laracasts 上有关于该特性的免费视频教程。 在 web 应用中,最常见的任务之一就是保存用户上传文件了,比如头像、照片、文档等等。Laravel 5.3 通过在上传文件实例上使用新的 store 方法让这一工作变得简单。只需要简单调用 store 方 法并传入文件保存路径即可: 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 类 定 义 之 外 , 现 在 Artisan 命 令 还 可 以 在 app/Console/Kernel.php 文 件 的 commands 方法中以简单闭包的方式定义。在新安装的 Laravel 5.3 应用中, commands 方法会加 载 routes/console.php 文件,从而允许你基于闭包、以路由风格定义控制台命令: Artisan::command('build 升级指南中的废弃功能都已从框架中移除,你需要查看这个列表以确定不 再使用这些废弃功能。 数组 key/value 顺序更改 Arr 类上的 first、last、以及 contains 方法现在将“value”作为第一个参数传递给给定闭包,例 如: Arr::first(function ($value, $key) { 本文档由 Laravel 学院(LaravelAcademy
    0 码力 | 691 页 | 9.37 MB | 1 年前
    3
  • pdf文档 Learning Laravel

    Creating a task 172 Making a task available 173 Scheduling your task 174 Setting the scheduler to run 174 Chapter 60: Testing 176 Examples 176 Introduction 176 Test without middleware and with a fresh the current framework environment help Displays help for a command list Lists commands migrate Run the database migrations optimize Optimize the framework for better performance serve Serve the application Create a new test class migrate:install Create the migration repository migrate:refresh Reset and re-run all migrations migrate:reset Rollback all database migrations migrate:rollback Rollback the last
    0 码力 | 216 页 | 1.58 MB | 1 年前
    3
  • pdf文档 The Laravel Handbook

    Composer using brew install php composer (might take a while) Once installed you should be able to run the php -v command to get the version of PHP installed (same for composer -v ): 6 Now you can directory, for example. In there, run: composer create-project laravel/laravel first To create a new project in a folder called first . Now go into that folder and run php artisan serve : cd first The {{ }} syntax allows you to add any data to the template, escaped. Inside it you can also run any PHP function you like, and Blade will display the return value of that execution. You can comment
    0 码力 | 111 页 | 14.25 MB | 1 年前
    3
  • pdf文档 Laravel 5.0 Documentation

    makes it a cinch to get started using Gulp to compile your Less, Sass, and CoffeeScript. It can even run your tests for you! For more information on Elixir, check out the full documentation. Laravel Socialite production, destructive migration operations will now ask for confirmation. Commands may be forced to run without any prompts using the --force command. The full change list for this release by running been introduced with this release. This feature allows you to easily SSH into remote servers and run commands. To learn more, consult the SSH component documentation. The new php artisan tail command
    0 码力 | 242 页 | 1.44 MB | 1 年前
    3
  • pdf文档 Laravel 3.2 Documentation

    it, just use it. Laravel will handle the rest.  View Composers are blocks of code that can be run when a view is loaded. A good example of this would be a blog side-navigation view that contains a can both generate and run migrations using the "Artisan" command-line utility. Once another member makes schema changes you can update your local copy from the repository and run migrations. Now you're industry. Laravel also makes it easy for you to write unit-tests for your own code. You can then run tests with the "Artisan" command-line utility.  Automatic Pagination prevents your application
    0 码力 | 139 页 | 1.13 MB | 1 年前
    3
共 9 条
  • 1
前往
页
相关搜索词
Laravel6.0中文文档5.65.25.15.3LearningTheHandbook5.0Documentation3.2
IT文库
关于我们 文库协议 联系我们 意见反馈 免责声明
本站文档数据由用户上传或本站整理自互联网,不以营利为目的,供所有人免费下载和学习使用。如侵犯您的权益,请联系我们进行删除。
IT文库 ©1024 - 2025 | 站点地图
Powered By MOREDOC AI v3.3.0-beta.70
  • 关注我们的公众号【刻舟求荐】,给您不一样的精彩
    关注我们的公众号【刻舟求荐】,给您不一样的精彩