Learning Laravelon specific resources. With Authorization, you can selectively allow users access to certain resources while denying access to others. Laravel provides a simple API for managing user authorizations by around a model resource. Using our previous example, we might have a ContentPolicy that manages user access to the Content model. To make ContentPolicy, laravel provides an artisan command. Simply run php having value 'Information Station'. In general, an included page will have access to any variable that the calling page has access to. For instance, if we have: {{$user}} // Outputs 'abc123' @include('includes0 码力 | 216 页 | 1.58 MB | 1 年前3
Laravel 5.0 Documentation
Linode, DigitalOcean, Rackspace, and Amazon EC2. Supporting automated Nginx configuration, SSH key access, Cron job automation, server monitoring via NewRelic & Papertrail, "Push To Deploy", Laravel queue environment. Instead, move any configuration values that vary by environment into .env , and then access them in your Upgrade Guide Upgrading To 5.0 From 4.2 Fresh Install, Then Migrate Composer Dependencies Environment Detection Updates Simpler Log Files Removing Redirect Trailing Slash Current Route Access Composer Update Wildcard Event Listeners Bug Reports Core Development Discussion Which Branch0 码力 | 242 页 | 1.44 MB | 1 年前3
Laravel 3.2 Documentationmeans that you'll rarely ever need to bootstrap any external libraries. It also means that you can access these objects from anywhere in your code without needing to deal with an inflexible monolithic structure Route::controller(array('dashboard.panel', 'admin')); Once a controller is registered, you may access its methods using a simple URI convention: http://localhost/controller/method/arguments This Registering a bundle's controller with the router: Route::controller('admin::home'); Great! Now we can access our "admin" bundle's home controller from the web! Note: Throughout Laravel the double-colon syntax0 码力 | 139 页 | 1.13 MB | 1 年前3
Laravel 6.0 中文文档事件触发和新用户登录 逻辑现在被移到 registered 方法中了,如果你重写了这些方法而没 有调用对应的父级方法,用户注册处理会失败。 授权响应 影响级别:低 Illuminate\Auth\Access\Response 类的控制器签名做了调整,你 需要更新相应的代码。如果你没有手动构造过授权响应实例,只是在 策略类中使用了 allow 和 deny 方法, 则可以忽略此更新: /** __construct($allowed, $message = '', $code = null) Illuminate\Contracts\Auth\Access\Gate 契约 影响级别:低 Illuminate\Contracts\Auth\Access\Gate 契约新增了一个新 的 inspect 方法声明,如果你自行实现过该接口,需要添加这个方 法的实现。 Carbon 不再支持 Carbon http://homestead:9600/ 即可查看 Monio 控制面板,默认的 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 81 access key 是 homestead,默认的 secret key 是 secretkey,访 问 Minio 时,需要使用 us-east-1 区域。 为了使用 Minio,你需要在配置文件 config/filesystems0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.6 中文文档public function __construct() { // } /** * Authenticate the user's access to the channel. * * @param \App\User $user * @param \App\Order $order @component('alert') You are not allowed to access this resource! @endcomponent 或者,如果组件没有额外插槽,可以使用组件别名作为 Blade 指令: @alert You are not allowed to access this resource! @endalert Argon2 密码哈希 /index.php?$query_string; } location = /favicon.ico { access_log off; log_not_found off; } location = /robots.txt { access_log off; log_not_found off; } error_page 404 /index.php;0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 5.3 中文文档Oauth2 服务器实现,Passport 基于 Alex Bilbie 维护的 League OAuth2 server 实 现。 Passport 使得通过 OAuth2 授权码获取访问令牌(access token)变得轻松,你还可以允许用户通 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源access-tokens> access-tokens> 如果你不想使用 Vue 组件,欢迎提供你自己的用于管理客户端和访问令牌的前端后台。Passport 提供了一个简单的 JSON API,你可以在前端使用任何 还包含了用于验证访问令牌认证请求包含必要令牌域的中间件: Route::get('/orders/{order}/status', function (Order $order) { // Access token has "check-status" scope... })->middleware('scope:check-status'); 最后,Passport 还支持从 JavaScript0 码力 | 691 页 | 9.37 MB | 1 年前3
The Laravel Handbook
to create an API token and I generate one 83 and finally I copy the code to Forge. I now have access to the servers dashboard 84 Here’s where you need to create the subscription. I picked the Hobby control panel of your server. On the left, there’s a menu that gives you access to specific menus. 88 For example you have access to server logs through “Logs”: 89 You can see the scheduled jobs in “Scheduler”: Commands are great to perform one-off tasks, maintenance, and much more. Inside a command you have access to all the goodies provided by Laravel, including your own code, classes, and more. You can also0 码力 | 111 页 | 14.25 MB | 1 年前3
Laravel 5.2 中文文档org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 5 授权 Illuminate\Auth\Access\UnauthorizedException 被重命名 为 Illuminate\Auth\Access\AuthorizationException。如果你没有手动捕获该异常那么 这一改变对之前代码没有什么影响。 集合 Eloquent 。 异常处理 App\Exceptions\Handler 类的 $dontReport 属性应该被更新为至少包含以下异常类型的其 中一个: use Illuminate\Auth\Access\AuthorizationException; use Illuminate\Database\Eloquent\ModelNotFoundException; use Symfony Laravel 学院致力于提供优质 Laravel 中文学习资源 167 2、定义权限(Abilities) 判断用户是否有权限执行给定动作的最简单方式就是使 用 Illuminate\Auth\Access\Gate 类来定义一个“权限”。我们在 AuthServiceProvider 中定 义所有权限,例如,我们来定义一个接收当前 User 和 Post 模型的 update-post 权限,在0 码力 | 377 页 | 4.56 MB | 1 年前3
《Slides Dev Web》 09. Services Web
Google6 – IFTTT7 • Consommer un service web ≠ Créer un service web SOAP • AVANT : Simple Object Access Protocol (obsolète) • Evolution de XML-RPC, format XML d’envoi de messages • Architecture Orientée0 码力 | 6 页 | 47.90 KB | 1 年前3
Laravel 5.1 中文文档@return void */ public function handle(PodcastWasPurchased $event) { // Access the podcast using $event->podcast... } } 你的事件监听器还可以在构造器中类型提示任何需要的依赖,所有事件监听器通过服务容器 解析,所以依赖会自动注入:0 码力 | 307 页 | 3.46 MB | 1 年前3
共 10 条
- 1













