Laravel 3.2 DocumentationLARAVEL CHANGE LOG Laravel 3.2.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 Added HTML::macro method. Added Route::forward method. Prepend table name to default index names in schema. Added "forelse" to Blade. Added View::render_each. Able to specify default index naming scheme provided by Laravel, prefix the index names with their table name on your database. So, if the current index name is "id_unique" on the "users" table, make the index name "users_id_unique"0 码力 | 139 页 | 1.13 MB | 1 年前3
Learning Laravelavailable, containing information about the state of the loop: Property Description $loop->index The index of the current loop iteration (starts at 0). $loop->iteration The current loop iteration (starts __construct() { $this->middleware('auth'); $this->middleware('log')->only('index'); $this->middleware('subscribed')->except('store'); } } Resource Controller Laravel of the resource. * * @return \Illuminate\Http\Response */ public function index() { // } /** * Show the form for creating a new resource. *0 码力 | 216 页 | 1.58 MB | 1 年前3
Laravel 5.0 Documentation
public directory to your new application's public directory. Be sure to keep the 5.0 version of index.php . Move your tests from app/tests to the new tests directory. Copy in any other files in change your laravel/framework version to 4.1.* in your composer.json file. Replace your public/index.php file with this fresh copy from the repository. Replace your artisan file with this fresh copy web server. The framework ships with a public/.htaccess file that is used to allow URLs without index.php . If you use Apache to serve your Laravel application, be sure to enable the mod_rewrite module0 码力 | 242 页 | 1.44 MB | 1 年前3
《Slides Dev Web》02. Introduction aux frameworks PHP
qui cor- respond à une ligne vide). La requête HTTP commencent toujours par la demande, ici GET /index.php?page=equipe&id=25 HTTP/1.1 puis les entêtes, ici: Host: www.he-arc.ch. La réponse du serveur est mework 18https://github.com/HE-Arc/php-intro-framework 11 Fait #1 PHP parle HTTP. Le fichier index.php est le code PHP le plus simple qui soit. Simple au sens du niveau de compréhension de PHP et d’une pas optimal car difficile à lire et maintenir. Séparation métier/affichage index.php // ... include "templates/entete.html"; if ("equipe" === $_GET["page"]) { // SELECT FROM u0 码力 | 24 页 | 1.03 MB | 1 年前3
Laravel 5.2 中文文档动作的多个路由,相应地,Artisan 生成的控 制器也已经为这些动作设置了对应的处理方法。 资源控制器处理的动作 方法 路径 动作 路由名称 GET /photo index photo.index GET /photo/create create photo.create POST /photo store photo.store GET /photo/{photo} 只定义部分资源路由 声明资源路由时可以指定该路由处理的动作子集: Route::resource('photo', 'PhotoController', ['only' => ['index', 'show']]); Route::resource('photo', 'PhotoController', ['except' => ['create', 'store', 'update' 为 Laravel 的 RouteServiceProvider 将会 自动设置默认的控制器命名空间: return redirect()->action('HomeController@index'); 当然,如果控制器路由要求参数,你可以将参数作为第二个参数传递给 action 方法: return redirect()->action('UserController@profile'0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 5.6 中文文档Laravel 初始化配置 公共目录 安装完 Laravel 后,需要将 Web 服务器的 document/web 根目录指向 Laravel 应用的 public 目录,该目录下的 index.php 文件作为前端控制器 (单一入口),所有 HTTP 请求都会通过该文件进入应用。 配置文件 Laravel 框架的所有配置文件都存放在 config 目录下,所有的配置项都有注释,所以 讲 Homestead 和 Valet 再去了 解。本文只探讨如何美化 URL 让其更具有可读性。 Apache 框架中自带的 public/.htaccess 文件支持隐藏 URL 中的 index.php,如过你的 Laravel 应用使用 Apache 作为服务器,需要先确保 Apache 启 用了 mod_rewrite 模块以支持 .htaccess 解析。 如果 Laravel 自带的 RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] Nginx 如果你使用的是 Nginx,使用如下站点配置指令就可以支持 URL 美化: location / { try_files $uri $uri/ /index.php?$query_string; } 当然,使用 Homestead 或 Valet0 码力 | 377 页 | 14.56 MB | 1 年前3
The Laravel Handbook
will first validate the form, then store the dog into the database. Finally we redirect to the index route: 32 'required', ]); Dog::create($request->all()); return to_route('index'); } } Now back to the form, enter a name and click “Submit”: You will be redirected to blade.php . In routes/web.php we’re going to show the dogs view on / , which we name the index route, and we show the form to add a new dog on /newdog . Doing a POST request on that route will0 码力 | 111 页 | 14.25 MB | 1 年前3
Laravel 6.0 中文文档.com 13 影响级别:高 使用 authorizeResource 方法添加到控制器的授权策略类现在要 定义 viewAny 方法,该方法会在用户访问控制器的 index 方法时被 调用。否则,调用控制器的 index 方法会被认为是未授权而拒绝。 RegisterController 控制器 影响级别:中等 如果你重写过 Laravel 框架内 置 RegisterController 中文学习资源:https://xueyuanjun.com 33 公共目录 安装完 Laravel 后,需要将 Web 服务器的 web 根目录指向 Laravel 应用的 public 目录,该目录下的 index.php 文件作为前端 控制器(单一入口),所有 HTTP 请求都会通过该文件进入应用。 配置文件 Laravel 框架的所有配置文件都存放在 config 目录下,所有的配置 项都有注释 再去了解。本文只探讨如何美化 URL 让其更具有可读性。 注:所谓 URL 美化指的是隐藏 URL 中 的 index.php 以及将带动态查询字符串的 URL 调整为 伪静态 URL。 Apache 框架中自带的 public/.htaccess 文件支持隐藏 URL 中 的 index.php,如过你的 Laravel 应用使用 Apache 作为服务器, 本文档由学院君提供 学院君致力于提供优质0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.1 中文文档安装完成后,你还应该配置自己的本地环境,如数据库驱动、邮箱服务器、缓存驱 动等。 2.1.4 美化 URL Apache 框架中自带的 public/.htaccess 文件支持 URL 中隐藏 index.php,如过你的 Laravel 应用 使用 Apache 作为服务器,需要先确保 Apache 启用了 mod_rewrite 模块以支持.htaccess 解析。 如果 Laravel 自带的 %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] Nginx 在 Nginx 中,使用如下站点配置指令就可以支持 URL 美化: location / { 本文档由 Laravel 学院(LaravelAcademy.org)提供 11 try_files $uri $uri/ /index.php?$query_string; } Laravel 学院(LaravelAcademy.org)提供 32 4.1 资源控制器处理的动作 方法 路径 动作 路由名称 GET /photo index photo.index GET /photo/create create photo.create POST /photo store photo.store GET /photo/{photo}0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 5.3 中文文档* * @param \Illuminate\Http\Request $request * @return Response */ public function index(Request $request) 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 目录下,并且每一个配置项都有注释,所以你可以 随意浏览任意配置文件去熟悉这些配置项。 Public 目录 安装完 Laravel 后,需要将 HTTP 服务器的 web 根目录指向 public 目录,该目录下的 index.php 文件将作为前端控制器,所有 HTTP 请求都会通过该文件进入应用。 配置文件 Laravel 框架的所有配置文件都存放在 config 目录下,所有的配置项都有注释,所以你可以轻松 Database 目录 database 目录包含了数据迁移及填充文件,如果你喜欢的话还可以将其作为 SQLite 数据库存放 目录; Public 目录 public 目录包含了入口文件 index.php 和前端资源文件(图片、JavaScript、CSS 等); Resources 目录 resources 目录包含了视图文件及原生资源文件(LESS、SASS、CoffeeScript),以及本地化文件;0 码力 | 691 页 | 9.37 MB | 1 年前3
共 17 条
- 1
- 2













