Learning LaravelExamples 125 laravel-ide-helper 125 laravel-datatables 125 Intervention Image 125 Laravel generator 125 Laravel Socialite 125 Official Packages 125 Cashier 125 Envoy 126 Passport 126 Scout 126 Chapter 61: Token Mismatch Error in AJAX 179 Introduction 179 Examples 179 Setup Token on Header 179 Set token on tag 179 Check session storage path & permission 179 Use _token field on Ajax 180 Chapter ORM To connect your models to various types of databases, Laravel offers its own ORM with a large set of functions to work with. The framework also provides migration and seeding and also features rollbacks0 码力 | 216 页 | 1.58 MB | 1 年前3
Laravel 5.0 Documentation
repository. This repository has no external dependencies. Having a convenient, centrally located set of interfaces you may use for decoupling and dependency injection will serve as an easy alternative check out the documentation. To compliment the new default application structure, new Artisan generator commands have been added to the framework. See php artisan list for more details. You may now Copy the new .env.example file to .env , which is the 5.0 equivalent of the old .env.php file. Set any appropriate values there, like your APP_ENV and APP_KEY (your encryption key), your database0 码力 | 242 页 | 1.44 MB | 1 年前3
Laravel 6.0 中文文档ection = null) cursor 方法 影响级别:低 cursor 方法现在返回的 是 Illuminate\Support\LazyCollection 实例而不 是 Generator,LazyCollection 可以像生成器一样迭代: $users = App\User::cursor(); foreach ($users as $user) { // } Eloquent @echo off set cwd=%cd% set homesteadVagrant=C:\Homestead cd /d %homesteadVagrant% && vagrant %* cd /d %cwd% 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 74 set cwd= set homesteadVagrant= \Illuminate\Routing\Middleware\Subst ituteBindings::class, 'cache.headers' => \Illuminate\Http\Middleware\Set CacheHeaders::class, 'can' => \Illuminate\Auth\Middleware\Authorize::cl ass, 'guest' => \App\H0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.6 中文文档在系统的任意位置创建一个批处理文件 homestead.bat: @echo off set cwd=%cd% set homesteadVagrant=C:\Homestead cd /d %homesteadVagrant% && vagrant %* cd /d %cwd% set cwd= set homesteadVagrant= 你需要将脚本中实例路径 C:\Homestead '学院君']); 运行更新语句 update 方法用于更新数据库中已存在的记录,该方法返回受更新语句影响的行数: $affected = DB::update('update users set votes = 100 where name = ?', ['学院君']); 运行删除语句 delete 方法用于删除数据库中已存在的记录,和 update 一样,该语句返回被删除的行数: 当然,如上所述,可以在 Redis 门面上调用任何 Redis 命令。Laravel 使用魔术方法将命令传递给 Redis 服务器,所以只需简单传递参数和 Redis 命令如下: Redis::set('name', 'Taylor'); $values = Redis::lrange('names', 5, 10); 此外,还可以使用 command 方法传递命令到服务器,该方法接收0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 5.1 中文文档Laravel 才会加载其服务提供者。 服务容器 1、简介 Laravel 服务容器是一个用于管理类依赖和执行依赖注入的强大工具。依赖注入听上去很花 哨,其实质是通过构造函数或者某些情况下通过 set 方法将类依赖注入到类中。 让我们看一个简单的例子: set votes = 100 where name = ?', ['John']); 2.5 运行删除语句 delete 方法用于删除数据库中已存在的记录,和 update 一样,该语句返回被删除的行数: Desk // $array: ['price' => 100] array_set() array_set 方法在嵌套数组中使用”.“号设置值: $array = ['products' => ['desk' => ['price' => 100]]]; array_set($array, 'products.desk.price', 200); // ['products'0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 5.2 中文文档Laravel 才会加载其服务提供者。 服务容器 1、简介 Laravel 服务容器是一个用于管理类依赖和执行依赖注入的强大工具。依赖注入听上去很花 哨,其实质是通过构造函数或者某些情况下通过 set 方法将类依赖注入到类中。 让我们看一个简单的例子: set votes = 100 where name = ?', ['John']); 运行删除语句 delete 方法用于删除数据库中已存在的记录,和 update 一样,该语句返回被删除的行 Laravel 学院致力于提供优质 Laravel 中文学习资源 253 array_set() array_set 方法在嵌套数组中使用”.”号设置值: $array = ['products' => ['desk' => ['price' => 100]]]; array_set($array, 'products.desk.price', 200); // ['products'0 码力 | 377 页 | 4.56 MB | 1 年前3
《Slides Dev Web》 08 . RSSversion Atom 2008-10-27T18:30:02Z David Grunenwald david 0 码力 | 7 页 | 52.98 KB | 1 年前3
Laravel 5.3 中文文档4. 核心概念 4.1 服务容器 1、简介 Laravel 服务容器是一个用于管理类依赖和执行依赖注入的强大工具。依赖注入听上去很花哨,其 实质是通过构造函数或者某些情况下通过 set 方法将类依赖注入到类中。 让我们看一个简单的例子: set votes = 100 where name = ? ', ['John']); 运行删除语句 delete 方法用于删除数据库中已存在的记录,和 update 一样,该语句返回被删除的行数: 当然,如上所述,可以在 Redis 门面上调用任何 Redis 命令。Laravel 使用魔术方法将命令传递给 Redis 服务器,所以只需简单传递参数和 Redis 命令如下: Redis::set('name', 'Taylor'); $values = Redis::lrange('names', 5, 10); 此外还可以使用 command 方法传递命令到服务器,该方法接收命令名作为第一个参数,参数值数0 码力 | 691 页 | 9.37 MB | 1 年前3
Laravel 3.2 Documentation Replace the laravel folder. Laravel 3.2.1 Fixed bug in cookie retrieval when cookie is set on same request. Fixed bug in SQL Server grammar for primary keys. Fixed bug in Validator models with Twig. Allow multiple views to be registered for a single composer. Added Request::set_env method. Schema::drop now accepts $connection as second parameter. Added Input::merge controller factories for injecting any IoC. Added link_to_action HTML helpers. Added ability to set default value on Config::get. Added the ability to add pattern based filters. Improved session0 码力 | 139 页 | 1.13 MB | 1 年前3
The Laravel Handbook
Laravel to get you up and running. 2. Getting started To get started with Laravel, you need to set up your PHP environment on your computer. You can do this in various ways. Before going on, remove called environment variables, for your app: 9 For example in this portion of the file you can see we set the app name, the debug flag, the URL, settings related to logging, to the database connection, email config/app.php file: 10 Each file in the folder contain a lot of configuration options you can set, very well documented. What’s the difference between config files and the .env file? Environment0 码力 | 111 页 | 14.25 MB | 1 年前3
共 13 条
- 1
- 2













