 Laravel 6.0 中文文档middleware the job should pass through. * * @return array */ public function middleware() { return [new RateLimited]; } 懒集合 许多开发者已经使用过 Laravel 功能强大的集合方法了,在 Laravel 6.0 中新引入了一个 LazyCollection 类来对 Collection deny 方法, 则可以忽略此更新: /** 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 14 * Create a new response. * * @param bool $allowed * @param string $message * @param mixed $code * @return void 中文学习资源:https://xueyuanjun.com 31 安装完成后,只需通过 laravel new 命令即可在当前目录下创建一 个新的 Laravel 应用,例如,laravel new blog 将会创建一个名 为 blog 的新 Laravel 应用,且包含所有已安装的 Laravel 依赖: laravel new blog 如果之前已经安装过旧版本的 Laravel 安装器,需要更新后才能安0 码力 | 1442 页 | 14.66 MB | 1 年前3 Laravel 6.0 中文文档middleware the job should pass through. * * @return array */ public function middleware() { return [new RateLimited]; } 懒集合 许多开发者已经使用过 Laravel 功能强大的集合方法了,在 Laravel 6.0 中新引入了一个 LazyCollection 类来对 Collection deny 方法, 则可以忽略此更新: /** 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 14 * Create a new response. * * @param bool $allowed * @param string $message * @param mixed $code * @return void 中文学习资源:https://xueyuanjun.com 31 安装完成后,只需通过 laravel new 命令即可在当前目录下创建一 个新的 Laravel 应用,例如,laravel new blog 将会创建一个名 为 blog 的新 Laravel 应用,且包含所有已安装的 Laravel 依赖: laravel new blog 如果之前已经安装过旧版本的 Laravel 安装器,需要更新后才能安0 码力 | 1442 页 | 14.66 MB | 1 年前3
 Laravel 5.0 Documentation
structure to the default Laravel project. This new structure serves as a better foundation for building robust application in Laravel, as well as embraces new auto-loading standards (PSR-4) throughout the namespace. This default namespace can be quickly changed using the new app:name Artisan command. Controllers, middleware, and requests (a new type of class in Laravel 5.0) are now grouped under the app/Http single, flat file of route filters, all middleware are now broken into their own class files. A new app/Providers directory replaces the app/start files from previous versions of Laravel 4.x. These0 码力 | 242 页 | 1.44 MB | 1 年前3 Laravel 5.0 Documentation
structure to the default Laravel project. This new structure serves as a better foundation for building robust application in Laravel, as well as embraces new auto-loading standards (PSR-4) throughout the namespace. This default namespace can be quickly changed using the new app:name Artisan command. Controllers, middleware, and requests (a new type of class in Laravel 5.0) are now grouped under the app/Http single, flat file of route filters, all middleware are now broken into their own class files. A new app/Providers directory replaces the app/start files from previous versions of Laravel 4.x. These0 码力 | 242 页 | 1.44 MB | 1 年前3
 Learning Laravelby multiple methods 8 Running Laravel Artisan commands using PHP code 9 Creating and registering new artisan command 9 Chapter 3: Authentication 10 Examples 10 Multi Authentication 10 Chapter 4: Authorization Structure 68 Examples 68 Change default app directory 68 Override Application class 68 Calling the new class 68 Composer 69 Change the Controllers directory 69 Chapter 21: Eloquent 70 Introduction 70 Chapter 26: Events and Listeners 93 Examples 93 Using Event and Listeners for sending emails to a new registered user 93 Chapter 27: Filesystem / Cloud Storage 95 Examples 95 Configuration 95 Basic0 码力 | 216 页 | 1.58 MB | 1 年前3 Learning Laravelby multiple methods 8 Running Laravel Artisan commands using PHP code 9 Creating and registering new artisan command 9 Chapter 3: Authentication 10 Examples 10 Multi Authentication 10 Chapter 4: Authorization Structure 68 Examples 68 Change default app directory 68 Override Application class 68 Calling the new class 68 Composer 69 Change the Controllers directory 69 Chapter 21: Eloquent 70 Introduction 70 Chapter 26: Events and Listeners 93 Examples 93 Using Event and Listeners for sending emails to a new registered user 93 Chapter 27: Filesystem / Cloud Storage 95 Examples 95 Configuration 95 Basic0 码力 | 216 页 | 1.58 MB | 1 年前3
 Laravel 3.2 DocumentationEnjoy Laravel? Laravel is a powerful framework that emphasizes flexibility and expressiveness. Users new to Laravel will enjoy the same ease of development that is found in the most popular and lightweight method's page content.  The IoC container (Inversion of Control) gives you a method for generating new objects and optionally instantiating and referencing singletons. IoC means that you'll rarely ever Unit-Testing is an important part of Laravel. Laravel itself sports hundreds of tests to help ensure that new changes don't unexpectedly break anything. This is one of the reasons why Laravel is widely considered0 码力 | 139 页 | 1.13 MB | 1 年前3 Laravel 3.2 DocumentationEnjoy Laravel? Laravel is a powerful framework that emphasizes flexibility and expressiveness. Users new to Laravel will enjoy the same ease of development that is found in the most popular and lightweight method's page content.  The IoC container (Inversion of Control) gives you a method for generating new objects and optionally instantiating and referencing singletons. IoC means that you'll rarely ever Unit-Testing is an important part of Laravel. Laravel itself sports hundreds of tests to help ensure that new changes don't unexpectedly break anything. This is one of the reasons why Laravel is widely considered0 码力 | 139 页 | 1.13 MB | 1 年前3
 The Laravel Handbook
On Twitter I can only see love for Laravel. Much like how it happens for Rails. This is not a “new framework of the month” kind of thing. Laravel has been around since 2011, well before modern frontend directory, for example. In there, run: composer create-project laravel/laravel first To create a new project in a folder called first . Now go into that folder and run php artisan serve : cd first by creating a new view in resources/views and using that view in the route, for example create a new view resources/views/test.blade.php resources/views/test.blade.php 16 The Laravel Handbook
On Twitter I can only see love for Laravel. Much like how it happens for Rails. This is not a “new framework of the month” kind of thing. Laravel has been around since 2011, well before modern frontend directory, for example. In there, run: composer create-project laravel/laravel first To create a new project in a folder called first . Now go into that folder and run php artisan serve : cd first by creating a new view in resources/views and using that view in the route, for example create a new view resources/views/test.blade.php resources/views/test.blade.php 16- new view!0 码力 | 111 页 | 14.25 MB | 1 年前3
 Laravel 5.6 中文文档App\Broadcasting; use App\User; use App\Order; class OrderChannel { /** * Create a new channel instance. * * @return void */ public function __construct() { 调用 laravel 命令。 安装完成后,通过简单的 laravel new 命令即可在当前目录下创建一个新的 Laravel 应用,例如,laravel new blog 将会创建一个名为 blog 的新 应用,且包含所有 Laravel 依赖。该安装方法比通过 Composer 安装要快很多: laravel new blog 如果之前已经安装过旧版本的 Laravel 安装器,需要更新后才能安装最新的 ~/Sites,然后进入这个目录并运行 valet park。这个命令会将当前所在目录作为 Web 根目 录。  接下来,在新建的目录中创建一个新的 Laravel 站点: laravel new blog。  接下来,在浏览器中访问 http://blog.com(我通过 valet domain com 将域名后缀改成了 .com)。 这就是我们要做的全部工作。现在,所有在0 码力 | 377 页 | 14.56 MB | 1 年前3 Laravel 5.6 中文文档App\Broadcasting; use App\User; use App\Order; class OrderChannel { /** * Create a new channel instance. * * @return void */ public function __construct() { 调用 laravel 命令。 安装完成后,通过简单的 laravel new 命令即可在当前目录下创建一个新的 Laravel 应用,例如,laravel new blog 将会创建一个名为 blog 的新 应用,且包含所有 Laravel 依赖。该安装方法比通过 Composer 安装要快很多: laravel new blog 如果之前已经安装过旧版本的 Laravel 安装器,需要更新后才能安装最新的 ~/Sites,然后进入这个目录并运行 valet park。这个命令会将当前所在目录作为 Web 根目 录。  接下来,在新建的目录中创建一个新的 Laravel 站点: laravel new blog。  接下来,在浏览器中访问 http://blog.com(我通过 valet domain com 将域名后缀改成了 .com)。 这就是我们要做的全部工作。现在,所有在0 码力 | 377 页 | 14.56 MB | 1 年前3
 Laravel 5.3 中文文档学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 4 个通知,你可以使用一个很简单的来实现: $user->notify(new InvoicePaid($invoice)); Laravel 社区已经为通知系统编写了各种各样的驱动,包括对 iOS 和 Android 通知的支持,要学习 更多关于通知系统的细节,查看其相应文档。 当然,Passport 还让定义可能在应用消费你的 API 期间被请求的访问令牌域变得简单: Passport::tokensCan([ 'place-orders' => 'Place new orders', 'check-status' => 'Check order status', ]); 此外,Passport 还包含了用于验证访问令牌认证请求包含必要令牌域的中间件: extends Model { use Searchable; } trait 被添加到模型之后,当保存模型实例的时候其信息将会被同步到搜索索引: $order = new Order; // ... 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源0 码力 | 691 页 | 9.37 MB | 1 年前3 Laravel 5.3 中文文档学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 4 个通知,你可以使用一个很简单的来实现: $user->notify(new InvoicePaid($invoice)); Laravel 社区已经为通知系统编写了各种各样的驱动,包括对 iOS 和 Android 通知的支持,要学习 更多关于通知系统的细节,查看其相应文档。 当然,Passport 还让定义可能在应用消费你的 API 期间被请求的访问令牌域变得简单: Passport::tokensCan([ 'place-orders' => 'Place new orders', 'check-status' => 'Check order status', ]); 此外,Passport 还包含了用于验证访问令牌认证请求包含必要令牌域的中间件: extends Model { use Searchable; } trait 被添加到模型之后,当保存模型实例的时候其信息将会被同步到搜索索引: $order = new Order; // ... 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源0 码力 | 691 页 | 9.37 MB | 1 年前3
 Laravel 5.2 中文文档Scopes()。 事件 核心事件对象 Laravel 的一些核心事件触发现在使用事件对象取代之前的事件名称以及动态参数,下面 是原来的事件名称与现在的事件对象对应关系: Old New auth.attempting Illuminate\Auth\Events\Attempting auth.login Illuminate\Auth\Events\Login auth eginning 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 7 Old New connection.{name}.committed Illuminate\Database\Events\TransactionCommitted connection.{name} 在系统路径中,否则不能在任意路径调用 laravel 命令。 安装完成后,通过简单的 laravel new 命令即可在当前目录下创建一个新的 Laravel 应 用,例如,laravel new blog 将会创建一个名为 blog 的新应用,且包含所有 Laravel 依 赖。该安装方法比通过 Composer 安装要快很多: laravel new blog 通过 Composer Create-Project0 码力 | 377 页 | 4.56 MB | 1 年前3 Laravel 5.2 中文文档Scopes()。 事件 核心事件对象 Laravel 的一些核心事件触发现在使用事件对象取代之前的事件名称以及动态参数,下面 是原来的事件名称与现在的事件对象对应关系: Old New auth.attempting Illuminate\Auth\Events\Attempting auth.login Illuminate\Auth\Events\Login auth eginning 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 7 Old New connection.{name}.committed Illuminate\Database\Events\TransactionCommitted connection.{name} 在系统路径中,否则不能在任意路径调用 laravel 命令。 安装完成后,通过简单的 laravel new 命令即可在当前目录下创建一个新的 Laravel 应 用,例如,laravel new blog 将会创建一个名为 blog 的新应用,且包含所有 Laravel 依 赖。该安装方法比通过 Composer 安装要快很多: laravel new blog 通过 Composer Create-Project0 码力 | 377 页 | 4.56 MB | 1 年前3
 Laravel 5.1 中文文档laravel 命令。 安装完成后,通过简单的 laravel new 命令将会在当前目录下创建一个新的 Laravel 应用, 例如,laravel new blog 将会创建一个名为 blog 的 Laravel 安装目录,该目录中已经包含 了所有 Laravel 依赖。该安装方法比通过 Composer 安装要快很多: laravel new blog 1.2.2 通过 Composer 你还可以在终端中通过 Foundation\Cookie 实例,新增的 cookies 通过 withCookie 方法被 附加到 Illuminate\Http\Response 实例: $response = new Illuminate\Http\Response('Hello World'); $response->withCookie(cookie('name', 'value', $minutes)); 类,该类提供了一系列方法用于创建 HTTP 响应: use Illuminate\Http\Response; Route::get('home', function () { return (new Response($content, $status)) ->header('Content-Type', $value); }); 为方便起见,还可以使用帮助函数0 码力 | 307 页 | 3.46 MB | 1 年前3 Laravel 5.1 中文文档laravel 命令。 安装完成后,通过简单的 laravel new 命令将会在当前目录下创建一个新的 Laravel 应用, 例如,laravel new blog 将会创建一个名为 blog 的 Laravel 安装目录,该目录中已经包含 了所有 Laravel 依赖。该安装方法比通过 Composer 安装要快很多: laravel new blog 1.2.2 通过 Composer 你还可以在终端中通过 Foundation\Cookie 实例,新增的 cookies 通过 withCookie 方法被 附加到 Illuminate\Http\Response 实例: $response = new Illuminate\Http\Response('Hello World'); $response->withCookie(cookie('name', 'value', $minutes)); 类,该类提供了一系列方法用于创建 HTTP 响应: use Illuminate\Http\Response; Route::get('home', function () { return (new Response($content, $status)) ->header('Content-Type', $value); }); 为方便起见,还可以使用帮助函数0 码力 | 307 页 | 3.46 MB | 1 年前3
 《Slides Dev Web》02. Introduction aux frameworks PHP
= $_GET["page"] ?? null; $id = (int) ($_GET["id"] ?? 0); // Connexion à la base de données. $db = new PDO("sqlite:../users.db"); // Page HTML ?> 《Slides Dev Web》02. Introduction aux frameworks PHP
= $_GET["page"] ?? null; $id = (int) ($_GET["id"] ?? 0); // Connexion à la base de données. $db = new PDO("sqlite:../users.db"); // Page HTML ?>- HE-Arc $loader = new Twig_Loader_FileSystem("templates"); $twig = new Twig_Environment($loader); // Ajout des filtres md5 et strtolower qui sont les fonctions PHP du même nom. $twig->addFilter(new Twig_Simp Twig_SimpleFilter('strtolower', 'strtolower')); $twig->addFilter(new Twig_SimpleFilter('md5', 'md5')); // variable globale $titre = "HE-Arc"; // Contenu if ("equipe" === $page) { 21http://twig.sensiolabs.org/0 码力 | 24 页 | 1.03 MB | 1 年前3
共 17 条
- 1
- 2













