Laravel 5.0 Documentation
iii. Contribution Guide i. Bug Reports ii. Core Development Discussion iii. Which Branch? iv. Security Vulnerabilities v. Coding Style 3. Setup i. Installation i. Install Composer ii. Install Laravel Upgrading To 4.1 From 4.0 Contribution Guide Bug Reports Core Development Discussion Which Branch? Security Vulnerabilities Coding Style Prologue Laravel 5.0 Laravel 4.2 Laravel 4.1 Laravel 5.0 introduces category. Move your views from app/views to the new resources/views directory. For better security by default, Laravel 5.0 escapes all output from both the {{ }} and {{{ }}} Blade directives0 码力 | 242 页 | 1.44 MB | 1 年前3
Laravel 3.2 Documentation2.8 Fix double slash bug in URLs when using languages and no "index.php". Fix possible security issue in Auth "remember me" cookies. Upgrading From 3.2.7 Replace the laravel folder. Groups Route groups allow you to attach a set of attributes to a group of routes, allowing you to keep your code neat and tidy. Route::group(array('before' => 'auth'), function() { Route::get('panel' Bundles are the heart of the improvements that were made in Laravel 3.0. They are a simple way to group code into convenient "bundles". A bundle can have it's own views, configuration, routes, migrations0 码力 | 139 页 | 1.13 MB | 1 年前3
Learning Laravelregular double braces syntax {{ }}, are filtered through PHP's htmlspecialchars function, for security (preventing malicious injection of HTML in the view). If you would like to bypass this behavior register the composer (* being a wildcard). You can also select a single view (e.g. 'home') of a group of routes under a subfolder (e.g. 'users.*'). Execute arbitrary PHP code Although it might not be protected function mapWebRoutes(Router $router) { https://riptutorial.com/ 28 $router->group([ 'namespace' => $this->namespace, 'middleware' => 'web', ], function ($router) {0 码力 | 216 页 | 1.58 MB | 1 年前3
The Laravel Handbook
are loaded by the RouteServiceProvider and all of them will | be assigned to the "web" middleware group. Make something great! | */ Route::get('/newdog', function () { return view('newdog'); which you don’t want to write yourself, as it’s a quite important and needs to be well tested for security issues. 56 I recommend you take a look at the file structure and compare it to the first project0 码力 | 111 页 | 14.25 MB | 1 年前3
《Slides Dev Web》 11. HTTPS
HTTP sécurisé par SSL/TLS, par défaut sur le port 443 1 Secure Socket Layer –> Transport Layer Security • Conçu par Netscape (v2.0 en 1994, v3.0 en 1996) • Brevet racheté par l’IETF : TLS v1.0 en 1999 minimisent et accélèrent les échanges • Certificats gratuits • Mise en place simplifiée Ressources • Security Party 23.10.20097 • SebSauvage8 • HTTPS en détails : – Diagramme de séquence HTTPS9 – Diagramme com/networking/ssl-tls/https-ssl-tls-session-for-spdy.pdf 11https://security.stackexchange.com/questions/20803/how-does-ssl-tls-work/20847#20847 12https://security.stackexchange.com/questions/55454/how-long-does-an-h0 码力 | 6 页 | 109.17 KB | 1 年前3
《Slides Dev Web》 12. Risques applicatifs
disponibles – nos applications : c’est nous qui en sommes responsables OWASP1 • Open Web Application Security Project 1https://owasp.org/ 1 • Fondation pour améliorer la sécurité des webapps • Fondée en hahwul.com/cullinan/history-of-owasp-top-10/ 9https://cheatsheetseries.owasp.org/cheatsheets/NPM_Security_Cheat_Sheet.html 2 – HTML – SQL – Javascript – … Injections SQL • Modifier les requêtes envoyées 21https://www.ncsc.gov.uk/guidance/password-guidance-simplifying-your-approach 22https://www.microsoft.com/security/blog/2021/09/15/the-passwordless-future-is-here-for-your-microsoft- account/ 23https://hacks.mozilla0 码力 | 12 页 | 474.37 KB | 1 年前3
Laravel 5.2 中文文档中文学习资源 3 'api' => [ 'throttle:60,1', ], ]; 然后,web 组像这样分配给路由: Route::group(['middleware' => ['web']], function () { // }); 访问频率限制 一个新的访问频率限制中间件已经被内置到框架中,从而允许你轻松限制给定 e('profile'); 路由群组 & 命名路由 如果你在使用路由群组,可以通过在路由群组的属性数组中指定 as 关键字来为群组中的路 由设置一个共用的路由名前缀: Route::group(['as' => 'admin::'], function () { Route::get('dashboard', ['as' => 'dashboard', function () 4、路由群组 路由群组允许我们在多个路由中共享路由属性,比如中间件和命名空间等,这样的话我们 就不必为每一个路由单独定义属性。共享属性以数组的形式作为第一个参数被传递 给 Route::group 方法。 下面我们通过几个简单的应用实例来演示路由群组。 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 5.6 中文文档学院致力于提供优质 Laravel 中文学习资源:http://laravelacademy.org 2 Route::middleware('auth:api', 'throttle:60,1')->group(function () { Route::get('/user', function () { // }); }); 在 Laravel 5.6 中, 属性,可以将属性名传递 给 throttle 中间件,以便用于计算最大请求次数计数: Route::middleware('auth:api', 'throttle:rate_limit,1')->group(function () { Route::get('/user', function () { // }); }); 广播频道类 如果你的应用消费 定义属性。共享属性以数组的形式作为第一个参数被传递给 Route::group 方法。 中间件 要给某个路由分组中定义的所有路由分配中间件,可以在定义分组之前使用 middleware 方法。中间件将会按照数组中定义的顺序依次执行: Route::middleware(['first', 'second'])->group(function () { Route::get('/'0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 5.1 中文文档rofile' ]); 3.1 路由群组 & 命名路由 如果你在使用路由群组,可以在路由群组属性数组中指定 as 关键字来为群组中的路由设置 一个共用的路由名前缀: Route::group(['as' => 'admin::'], function () { Route::get('dashboard', ['as' => 'dashboard', function () 共享属性的路由就不必再各自定义这些属性。共享属性以数组的形式被作为第一个参数传递 到 Route::group 方法中。 想要了解更多路由群组,我们希望通过几个简单的应用实例来展示其特性。 4.1 中间件 要分配中间件给群组中所有路由,可以在群组属性数组中使用 middleware 键。中间件将会 按照数组中定义的顺序依次执行: Route::group(['middleware' => 'auth'], function 学院(LaravelAcademy.org)提供 22 Route::group(['namespace' => 'Admin'], function(){ // Controllers Within The "App\Http\Controllers\Admin" Name space Route::group(['namespace' => 'User'], function()0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 6.0 中文文档本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 183 个路由单独定义属性。共享属性以数组的形式作为第一个参数被传递 给 Route::group 方法。 嵌套的分组会尝试智能地将属性合并到父分组中,中间件 和 where 条件会直接被合并,而路由命名、命名空间、以及路由前 缀会被附加到父组件对应属性之后。命名空间分隔符和 URI 中的斜 要给某个路由分组中定义的所有路由分配中间件,可以在定义分组之 前使用 middleware 方法。中间件将会按照数组中定义的顺序依次执 行: Route::middleware(['first', 'second'])->group(functio n () { Route::get('/', function () { // Uses first & second Middleware }); Route::get('user/profile' com 184 命名空间 路由分组另一个通用的例子是使用 namespace 方法分配同一个 PHP 命名空间给该分组下的多个控制器: Route::namespace('Admin')->group(function () { // Controllers Within The "App\Http\Controllers\Ad min" Namespace }); 默认情况下,RouteServiceProvider0 码力 | 1442 页 | 14.66 MB | 1 年前3
共 12 条
- 1
- 2













