Learning Laravelcode 9 Creating and registering new artisan command 9 Chapter 3: Authentication 10 Examples 10 Multi Authentication 10 Chapter 4: Authorization 14 Introduction 14 Examples 14 Using Gates 14 Authorizing satisfies certain condition 32 Using Pluck to extract certain values from a collection 32 Using Map to manipulate each element in a collection 33 Using sum, avg, min or max on a collection for statistical 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 Chapter0 码力 | 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 installation of the component itself is still optional. This release of Cashier brings numerous bug fixes, multi-currency support, and compatibility with the latest Stripe API. The Artisan queue:work command 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 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
Laravel 5.6 中文文档- map: ~/Development to: /home/vagrant/Code 如果你只是创建了很少的站点,使用一般的映射就够了。不过,随着站点数量的增加,你就会遇到性能问题,尤其是在包含大量文件的低端机器或项 目中,性能问题可能会非常明显。如果你不幸遇到了这个问题,可以尝试映射每个项目到各自的 Vagrant 文件夹: folders: - map: ~/code/project1 to: /home/vagrant/code/project1 - map: ~/code/project2 to: /home/vagrant/code/project2 如果要开启 NFS,只需简单添加一个标识到同步文件夹配置: folders: - map: ~/Development to: /home/vagrant/Code 中文学习资源:http://laravelacademy.org 14 你还可以通过 options 传递其他 Vagrant 支持的同步文件夹选项: folders: - map: ~/code to: /home/vagrant/code type: "rsync" options: rsync__args:0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 6.0 中文文档fopen('log.txt', 'r'); while (($line = fgets($handle)) !== false) { yield $line; } }) ->chunk(4) ->map(function ($lines) { return LogEntry::fromLines($lines); }) ->each(function (LogEntry $logEntry) 虚拟机共享的文件夹,一旦这些目录中的文件有了修 改,将会在本地和 Homestead 虚拟机之间保持同步,如果有需要 的话,你可以配置多个共享文件夹: folders: - map: ~/code/project1 to: /home/vagrant/project1 注:map 表示宿主机 Web 项目根目录,to 表示映射到 的虚拟机 Web 项目根目录,Windows 下需要将 ~ 替换 成完整的目录路径,比 如 folders: 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 61 - map: ~/code/project1 to: /home/vagrant/project1 - map: ~/code/project2 to: /home/vagrant/project2 当你映射目录时,虚拟机会跟踪该目录下每个文件的所有磁盘0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.1 中文文档groupBy 方法现在为每个父级 Collection 中的 item 返回 Collection 实例,如果你想要将这些 items 转化为数组,可以通过 map 方法实现: $collection->groupBy('type')->map(function($item){ return $item->all(); }); lists 方法 lists 方法现在返回一个 Collection Homestead 环境中保持同步,如果有 需要的话,你可以配置尽可能多的共享目录: folders: - map: ~/Code to: /home/vagrant/Code 如果想要开启 NFS,只需简单添加一个标识到同步文件夹配置: folders: - map: ~/Code to: /home/vagrant/Code type: "nfs" 学院(LaravelAcademy.org)提供 15 sites: - map: homestead.app to: /home/vagrant/Code/Laravel/public 你可以通过设置 hhvm 为 true 让所有的 Homestead 站点使用 HHVM: sites: - map: homestead.app to: /home/va0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 5.2 中文文档Laravel 学院致力于提供优质 Laravel 中文学习资源 17 - map: ~/Code to: /home/vagrant/Code 如果要开启 NFS,只需简单添加一个标识到同步文件夹配置: folders: - map: ~/Code to: /home/vagrant/Code type: 夹一样,你 可以配置多个站点: sites: - map: homestead.app to: /home/vagrant/Code/Laravel/public 你还可以通过设置 hhvm 为 true 让所有的 Homestead 站点使用 HHVM: sites: - map: homestead.app to: /home 任务并判断运行哪些任务。 如果想要为某个 Homestead 站点运行 schedule:run 命令,需要在定义站点时设 置 schedule 为 true: sites: - map: homestead.app to: /home/vagrant/Code/Laravel/public schedule: true 该站点的 Cron 任务会被定义在虚拟机的0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 5.3 中文文档DB::table('users')->get()->all(); Eloquent $morphClass 属性 可以在 Eloquent 模型上定义的$morphClass 属性已经被移除,以便定义一个“morph map”(变形 映射),定义变形映射可以支持渴求式加载并且解决使用多态关联关系引起的额外 bugs,如果你 之前使用了$morphClass 属性,需要使用如下语法将其迁移到 morphMap: 虚拟机之间保持同步,如果有需要的 话,你可以配置多个共享文件夹(一般一个就够了): folders: - map: ~/Code to: /home/vagrant/Code 如果要开启 NFS,只需简单添加一个标识到同步文件夹配置: folders: - map: ~/Code to: /home/vagrant/Code type: 56 站点: sites: - map: homestead.app to: /home/vagrant/Code/Laravel/public 你还可以通过设置 hhvm 为 true 让所有的 Homestead 站点使用 HHVM: sites: - map: homestead.app to: /hom0 码力 | 691 页 | 9.37 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
《Slides Dev Web》 07. jQuery
au contenu : – text() : get/set le texte entre les balises – html() : get/set l’élément complet (yc balises) – val() : get/set les valeurs d’un formulaire – attr() : set la valeur d’un attribut • Ajout css("background-color"); // get $("p").css({"background-color":"yellow","font-size":"200%"}); // set Evénements • Souris – click, dblclick, mouseenter, mouseleave • Clavier – keypress, keyup, keydown0 码力 | 5 页 | 49.45 KB | 1 年前3
共 12 条
- 1
- 2













