Learning LaravelLaravel #laravel Table of Contents About 1 Chapter 1: Getting started with Laravel 2 Remarks 2 Laravel StackOverflow Slack Community 2 Featured Tutorial 2 Contribution Guidelines 2 Contribution Actions Handled By Resource Controller 44 Chapter 12: Cron basics 45 Introduction 45 Examples 45 Create Cron Job 45 Chapter 13: Cross Domain Request 46 Examples 46 Introduction 46 CorsHeaders 46 Chapter 3 102 Remarks 102 Examples 102 Installing Laravel 102 Via Laravel Installer 102 Via Composer Create-Project 103 Setup 103 Server Requirements 103 Local Development Server 104 Hello World Example0 码力 | 216 页 | 1.58 MB | 1 年前3
Laravel 5.0 Documentation
i. Introduction ii. Defining Middleware iii. Registering Middleware iv. Terminable Middleware Table of Contents iii. Controllers i. Introduction ii. Basic Controllers iii. Controller Middleware application, such as error handling, logging, route loading, and more. Of course, you are free to create additional service providers for your application. Application language files and views have been simple corresponding views, which are located at resources/views/auth . In addition, a "users" table migration has been included with the framework. Including these simple resources allows rapid development0 码力 | 242 页 | 1.44 MB | 1 年前3
Laravel 3.2 Documentationyou create wonderful applications using simple, expressive syntax. Development should be a creative experience that you enjoy, not something that is painful. Enjoy the fresh air. ii TABLE OF CONTENTS ........................................................................................... 82 Table Joins ........................................................................................... ........................................................................... 113 Authentication Table .................................................................................................0 码力 | 139 页 | 1.13 MB | 1 年前3
The Laravel Handbook
1 Table of Contents Preface The Laravel Handbook Conclusion 2 Preface The Laravel Handbook follows the 80/20 rule: learn in 20% of the time the 80% of a topic. In particular, the goal is to get Handbook 0. Table of contents 0. Table of contents 1. Introduction to Laravel 2. Getting started 3. Blade 4. Dynamic routes 5. Adding a database 6. How to use migrations to create and modify the a dev folder in my home 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 run0 码力 | 111 页 | 14.25 MB | 1 年前3
Laravel 5.6 中文文档namespace App\Broadcasting; use App\User; use App\Order; class OrderChannel { /** * Create a new channel instance. * * @return void */ public function __construct() return $user->id === $order->user_id; } } API 控制器生成 声明被 API 消费的资源控制器时,通常你会排除输出 HTML 模板的路由,例如 create 和 edit,要生成不包含这些方法的资源控制器,可以在使 用 Artisan 命令执行 make:controller 时使用 --api 开关: php artisan make:controller Composer Create-Project 你还可以在终端中通过 Composer 的 create-project 命令来安装 Laravel 应用: composer create-project --prefer-dist laravel/laravel blog 如果要下载安装 Laravel 其他版本应用,比如 5.5 版本,可以使用这个命令: composer create-project0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 5.2 中文文档赖。该安装方法比通过 Composer 安装要快很多: laravel new blog 通过 Composer Create-Project 你还可以在终端中通过 Composer 的 create-project 命令来安装 Laravel 应用: composer create-project laravel/laravel --prefer-dist blog 3、基本配置 Laravel 制器也已经为这些动作设置了对应的处理方法。 资源控制器处理的动作 方法 路径 动作 路由名称 GET /photo index photo.index GET /photo/create create photo.create POST /photo store photo.store GET /photo/{photo} show photo.show GET /photo/{photo}/edit => ['create', 'store', 'update', 'destroy']]); 命名资源路由 默认情况下,所有资源控制器动作都有一个路由名称,然而,我们可以通过传入 names 数 组来覆盖这些默认的名字: Route::resource('photo', 'PhotoController', ['names' => ['create' =>0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 5.3 中文文档实例,最常见的场景就是授权 create 动 作。例如,如果你在创建一篇博客,你可能希望检查当前用户是否被授权创建文章。 当定义一个不接收模型实例的策略方法时,比如 create 方法,对应类名就不再需要以第二个参 数的方式传入,只需要传入认证用户实例即可: /** * Determine if the given user can create posts. * * @param \App\User $user * @return bool */ public function create(User $user) { // } AuthorizesResources Trait 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 如果你不想要迁移查询构建器结果到 Collection 实例,可以在查询构建器的 get 方法后调用 call 方法,这将会返回原生的 PHP 数组结果,从而保证向后兼容: $users = DB::table('users')->get()->all(); Eloquent $morphClass 属性 可以在 Eloquent 模型上定义的$morphClass 属性已经被移除,以便定义一个“morph0 码力 | 691 页 | 9.37 MB | 1 年前3
Laravel 5.1 中文文档学院(LaravelAcademy.org)提供 5 然后,Laravel 5.0 中使用的 App\Services\Registrar 不再被需要,你可以直接简单拷贝粘 贴其中的 validator 方法和 create 方法到 AuthController 中,这两个方法中的代码不需要 做任何改动。不要忘记确认 Validator 和 User 在 AuthController 中是否已经被导入。 PasswordController Illuminate\Contracts\Validation\Validator。 Eloquent create 方法 Eloquent 的 create 方法现在可以不传入任何参数进行调用,如果你在模型中要重写 create 方法,将$attributes 参数的默认值改为数组: public static function create(array $attributes = []){ // Your 你还可以在终端中通过 Composer 的 create-project 目录来安装 Laravel: composer create-project laravel/laravel --prefer-dist 该命令会在当前目录中创建一个名为 laravel 的 Laravel 安装,如果想要指定安装目录名, 可通过如下命令: composer create-project laravel/laravel0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 6.0 中文文档授权资源 & viewAny 字符串 & 数组辅助函数 影响中等 认证 RegisterController 不再支持 Carbon 1.x 数据库 Capsule::table 方法 Eloquent 数组化 & toArray Eloquent BelongsTo::update 方法 Eloquent 主键类型 本地化 Lang::trans allow 和 deny 方法, 则可以忽略此更新: /** 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 14 * Create a new response. * * @param bool $allowed * @param string $message * @param mixed $code * @return 需要在 .env 文件中更新这个环境变量的名称。 数据库 Capsule table 方法 影响级别:中等 注:此更新只会影响使用了 illuminate/database 依赖 包的非 Laravel 应用。 Illuminate\Database\Capsule\Manager 类的 table 方法签名被 更新为接收数据表别名作为第二个参数,如果你在 Laravel 应用之0 码力 | 1442 页 | 14.66 MB | 1 年前3
《Slides Dev Web》 05. JavaScript & DOM
ecma-international.org/publications-and-standards/standards/ecma-262/ 9https://compat-table.github.io/compat-table/es2016plus/ 10https://babeljs.io/ 11https://www.typescriptlang.org/ 12http://coffeescript 33https://developer.mozilla.org/en-US/docs/Web/API/Node/parentNode 9 var noeud = $('Nouveau texte
'); // create node $("body").append(noeud); // après le dernier fils • Sélection et Suppression : var noeud0 码力 | 10 页 | 91.95 KB | 1 年前3
共 13 条
- 1
- 2













