Learning Laravelsoon Contribution Style Guide Coming soon About Laravel Created by Taylor Otwell as a free open-source PHP web framework, Laravel is meant to ease and accelerate the development process of web applications hyphen ( - ) within the user-address view('example',['user-address' => 'Some Address']); The correct way of doing this will be view('example', ['user_address' => 'Some Address']); Control Structures Blade connect to your shared hosting account's root folder using "ftp://your-domain- name" as the network address. • Step 3 Open the public folder of your laravel project (on development machine), copy everything0 码力 | 216 页 | 1.58 MB | 1 年前3
Laravel 5.0 Documentation
command they wished to schedule. However, this is a headache. Your console schedule is no longer in source control, and you must SSH into your server to add the Cron entries. Let's make our lives easier report serves to help yourself and others start on the path of fixing the problem. The Laravel source code is managed on Github, and there are repositories for each of the Laravel projects: Laravel production environment. However, your .env file should not be committed to your application's source control, since each developer / server using your application could require a different environment0 码力 | 242 页 | 1.44 MB | 1 年前3
Laravel 3.2 Documentationthe $_SERVER global array: echo Request::server('http_referer'); Retrieving the requester's IP address: echo Request::ip(); Determining if the current request is using HTTPS: if (Request::secure()) instance, a registration form probably requires the password to be confirmed. Maybe the e-mail address must be unique. Validating data can be a cumbersome process. Thankfully, it isn't in Laravel. The No problem: Specify a custom column name for the unique rule: 'email' => 'unique:users,email_address' Many times, when updating a record, you want to use the unique rule, but exclude the row being0 码力 | 139 页 | 1.13 MB | 1 年前3
Laravel 5.6 中文文档public function boot() { Paginator::useBootstrapThree(); } } 资源 original 属性 资源响应的 original 属性现在被设置为原始模型而不是 JSON 字符串/数组。这样在测试中就可以更好地检查响应的模型。 路由 返回新创建的模型 从路由中直接返回新创建的 Eloquent 都可以用来设置系统 PATH,不同之处在于前者是给系统超级用户使用,后者是给普通登录用户使 用的,此外要让 ~/.bash_profile 修改后生效,有两种方法,一种是退出系统重新登录,一种是使用 source ~/.bash_profile 命令。 Windows 在系统的任意位置创建一个批处理文件 homestead.bat: @echo off set cwd=%cd% set $table->string('id')->unique(); $table->unsignedInteger('user_id')->nullable(); $table->string('ip_address', 45)->nullable(); $table->text('user_agent')->nullable(); $table->text('payload');0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 6.0 中文文档以用来设置系统 PATH,不同之处在于前者是给系统超级 用户使用,后者是给普通登录用户使用的,此外要 让 ~/.bash_profile 修改后生效,有两种方法,一种是 退出系统重新登录,一种是使用 source ~/.bash_profile 命令。 Windows 在系统的任意位置创建一个批处理文件 homestead.bat: @echo off set cwd=%cd% set ho d/20-xdebug.ini 添加如下配置来完 成: ; If Homestead.yml contains a different subnet for the IP address, this address may be different... xdebug.remote_host = 192.168.10.1 xdebug.remote_autostart = 1 使用 Blackfire $table->string('id')->unique(); $table->unsignedInteger('user_id')->nullable(); $table->string('ip_address', 45)->nullable(); $table->text('user_agent')->nullable(); $table->text('payload'); $table->i0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.1 中文文档$user->charge(100); charge 方法接收一个数组作为第二个参数,允许你传递任何你想要传递的底层 Stripe 账单 创建参数: $user->charge(100, [ 'source' => $token, 'receipt_email' => $user->email,]); 如果支付失败 charge 方法将返回 false,这通常表明付款被拒绝: if $message->from($address, $name = null); 本文档由 Laravel 学院(LaravelAcademy.org)提供 242 $message->sender($address, $name = null); $message->to($address, $name = null); $message->cc($address, $name = null); null); $message->bcc($address, $name = null); $message->replyTo($address, $name = null); $message->subject($subject); $message->priority($level); $message->attach($pathToFile, array $options = []);0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 5.2 中文文档'custom' => [ 'person.*.email' => [ 'unique' => 'Each person must have a unique e-mail address', ] ], 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 4 驱动,需要在配置文 件 session.php 中指定 legacy-database 驱动。 如果你想要使用新的驱动,还需要添加 user_id (nullable integer)、ip_address (nullable string) 以及 user_agent (text) 列到存放 Session 的数据表中。 Stringy 框架不再内置 Stringy 库,如果要在应用中使用,你需要通过 $user->charge(100); charge 方法接收一个数组作为第二个参数,允许你传递任何你想要传递的底层 Stripe 账 单创建参数: $user->charge(100, [ 'source' => $token, 'receipt_email' => $user->email,] ); 如果支付失败 charge 方法将返回 false,这通常表明付款被拒绝:0 码力 | 377 页 | 4.56 MB | 1 年前3
The Laravel Handbook
different sites. There is a default one already set up, and if you copy and paste the public IP address of the server in your browser, you’ll see it working: 92 Now let’s deploy the application on this become complicated for this handbook, so we’ll just use the default site which works on the IP address instead. Click the default site in the dashboard and you’ll see the site panel: 93 We have the (usually main ) and click Install Repository. After a while it’s done! But if you go to the IP address again, there’s an error: 95 Mmmm! We don’t see more details because now the site is in a production0 码力 | 111 页 | 14.25 MB | 1 年前3
Laravel 5.3 中文文档$table->string('id')->unique(); $table->integer('user_id')->nullable(); $table->string('ip_address', 45)->nullable(); $table->text('user_agent')->nullable(); $table->text('payload'); 通过“.”来实现,首先指定属性名,然后 是规则: $messages = [ 'email.required' => 'We need to know your e-mail address!', ]; 在语言文件中指定自定义消息 在很多案例中,你可能想要在语言文件中指定属性特定自定义消息而不是将它们直接传递给 Validator。要实现这个,添加消息到 resourc custom 数 组: 'custom' => [ 'email' => [ 'required' => 'We need to know your e-mail address!', ], ], 6、验证规则大全 下面是有效规则及其函数列表: Accepted Active URL After (Date) Alpha0 码力 | 691 页 | 9.37 MB | 1 年前3
《Slides Dev Web》 08 . RSSjournaux : dépêches, bandes dessinées, … • Télévision : jeux, séries • Web : Flux RSS / Atom – 1 source de donnée, plusieurs abonnés – Contenu : news, blogs, podcast, … – Accès unique à plusieurs sources • Notification : activité, mise à jour • Podcasts • Accès unique à des infos de plusieurs sites • Source de contenu • Augmenter le trafic d’un site • Exemples2 et Passerelles3 Agrégateurs • Natifs –Un tout nouveau cours. 4 Générer le flux • Données dynamiques • Source de données identique à celle de l’application • Nécessité de générer le fichier à la volée • Nouveaux0 码力 | 7 页 | 52.98 KB | 1 年前3
共 14 条
- 1
- 2













