Laravel 5.6 中文文档channels.php。 web.php 文件包含的路由都位于 RouteServiceProvider 所定义的 web 中间件组约束之内,因而支持 Session、CSRF 保护以及 Cookie 加密功能, 如果应用无需提供无状态的、RESTful 风格的 API,那么路由基本上都要定义在 web.php 文件中。 api.php 文件包含的路由位于 api 中间件组约束之内,支持 Illuminate\Cache\Repository cache.store Config Illuminate\Config\Repository config Cookie Illuminate\Cookie\CookieJar cookie Crypt Illuminate\Encryption\Encrypter encrypter DB Illuminate\Database\DatabaseManager Illuminate\Contracts\Cookie\Factory Cookie 本文档由 Laravel 学院提供 Laravel 学院致力于提供优质 Laravel 中文学习资源:http://laravelacademy.org 42 契约 对应门面 Illuminate\Contracts\Cookie\QueueingFactory Cookie::queue()0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 6.0 中文文档channels.php。 web.php 文件包含的路由通过 RouteServiceProvider 引入,都被 约束在 web 中间件组中,因而支持 Session、CSRF 保护以及 Cookie 加密功能,如果应用无需提供无状态的、RESTful 风格的 API,那么路由基本上都要定义在 web.php 文件中。 api.php 文件包含的路由通过 RouteServiceProvider shell 别 名 xphp 命令: xphp path/to/script 自动启动 Xdebug 当发送请求到 Web 服务器调试功能测试时,自动启动调试比修改测 试通过自定义请求头或者 Cookie 来触发调试要轻松许多。要设置 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 89 Xdebug 自动启动,可以在虚拟机中编 如果站点已经存在,更新之后需要运行 vagrant provision 让其生 效。 要分析一个 Web 请求,需要添加 xhgui=on 到查询字符串作为请求 参数,XHGui 会自动添加 Cookie 到响应,以便后续请求不再需要 添加查询字符串。你可以访问 http://your-site.test/xhgui 来查 看应用分析结果。 本文档由学院君提供 学院君致力于提供优质 Laravel0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.0 Documentation
improvements for "remember me" cookies. Before this update, if a remember cookie was hijacked by another malicious user, the cookie would remain valid for a long period of time, even after the true owner The implications of this change are: if a "remember me" cookie is hijacked, simply logging out of the application will invalidate the cookie. First, add a new, nullable remember_token of VARCHAR(100) changed by the client. $value = Request::cookie('name'); The cookie helper serves as a simple factory for generating new Symfony\Component\HttpFoundation\Cookie instances. The cookies may be attached0 码力 | 242 页 | 1.44 MB | 1 年前3
Laravel 3.2 DocumentationUpgrading From 3.2.1 Replace the laravel folder. Laravel 3.2.1 Fixed bug in cookie retrieval when cookie is set on same request. Fixed bug in SQL Server grammar for primary keys. Fixed Profiler::attach(); } Upgrade the paths.php file. Replace the laravel folder. Laravel 3.1.9 Fixes cookie session driver bug that caused infinite loop on some occasions. Upgrading From 3.1.8 Replace the $_COOKIE array. However, there are a few things you should be aware of before using it. First, all Laravel cookies contain a "signature hash". This allows the framework to verify that the cookie has0 码力 | 139 页 | 1.13 MB | 1 年前3
Laravel 5.3 中文文档默认提供了三个路由文件:web.php、api.php 和 console.php。 web.php 文件包含的路由都会应用 web 中间件组,具备 Session、CSRF 防护以及 Cookie 加密功 能,如果应用无需提供无状态的、RESTful 风格的 API,所有路由都会定义在 web.php 文件。 api.php 文件包含的路由应用了 api 中间件组,具备频率限制功能,这些路由是无状态的,所以 Illuminate\Cache\Repository cache Config Illuminate\Config\Repository config Cookie Illuminate\Cookie\CookieJar cookie Crypt Illuminate\Encryption\Encrypter encrypter DB Illuminate\Database\DatabaseManager Illuminate\Contracts\Container\Container App Illuminate\Contracts\Cookie\Factory Cookie Illuminate\Contracts\Cookie\QueueingFactory Cookie::queue() Illuminate\Contracts\Encryption\Encrypter Crypt0 码力 | 691 页 | 9.37 MB | 1 年前3
Laravel 5.2 中文文档= [ 'web' => [ \App\Http\Middleware\EncryptCookies::class, \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, \Illuminate\Session\Middleware\StartSession::class ).attr('content') } }); X-XSRF-Token Laravel 还会将 CSRF 令牌保存到了名为 XSRF-TOKEN 的 Cookie 中,你可以使用该 Cookie 值来设置 X-XSRF-TOKEN 请求头。一些 JavaScript 框架,比如 Angular,会为你 自动进行设置,基本上你不太需要手动设置这个值。 6、路由模型绑定 学院致力于提供优质 Laravel 中文学习资源 34 \App\Http\Middleware\EncryptCookies::class, \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, \Illuminate\Session\Middleware\StartSession::class0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 5.1 中文文档attr('c ontent') } }); 5.4 X-XSRF-Token Laravel 还将 CSRF 令牌保存到了名为 XSRF-TOKEN 的 cookie 中,你可以使用该 cookie 值来 设置 X-XSRF-TOKEN 请求头。一些 JavaScript 框架,比如 Angular,将会为你自动进行设置, 基本上你不太会手动设置这个值。 6、表单方法伪造 Illuminate\Http\Request 实例的 cookie 方法从请求中获取 cookie 的值: $value = $request->cookie('name'); 2.2.2 新增 Cookie Laravel 提供了一个全局的帮助函数 cookie 作为一个简单工厂来生成新的 Symfony\Component\HttpFoundation\Cookie 实例,新增的 cookies 通过 World'); $response->withCookie(cookie('name', 'value', $minutes)); return $response; 想要创建一个长期有效的 cookie,可以使用 cookie 工厂的 forever 方法: $response->withCookie(cookie()->forever('name', 'value')); 20 码力 | 307 页 | 3.46 MB | 1 年前3
《Slides Dev Web》 12. Risques applicatifs
utilisé pour transmettre le cookie de session
3 types de XSS •0 码力 | 12 页 | 474.37 KB | 1 年前3
Learning Laravelthe root of your laravel 2. https://riptutorial.com/ 179 project. Change the name of your cookie 'cookie' => 'toys-store', 3. return [ 'driver' => env('SESSION_DRIVER', 'file'), 'lifetime' ions'), 'connection' => null, 'table' => 'sessions', 'lottery' => [2, 100], 'cookie' => 'toys-store', 'path' => '/ts/toys-store', 'domain' => null, 'secure' => false0 码力 | 216 页 | 1.58 MB | 1 年前3
《Slides Dev Web》 06. HTTP & AJAX
HTTP 1.0 (1996) – Entêtes de requête (Host, Referer, User-Agent, …) et réponse (Content-Type, Set- Cookie, Location, …) • HTTP 1.1 (1997) – Nouveaux entêtes (Keep-alive, pipelining, cache, …), Host obligatoire0 码力 | 11 页 | 91.09 KB | 1 年前3
共 10 条
- 1













