Learning Laravelmethods 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 14 Seeds 62 Chapter 19: Deploy Laravel 5 App on Shared Hosting on Linux Server 65 Remarks 65 Examples 65 Laravel 5 App on Shared Hosting on Linux Server 65 Chapter 20: Directory Structure 68 Examples 68 Valet link 183 Valet park 184 Valet links 184 Installation 184 Valet domain 185 Installation (Linux) 185 Chapter 65: Validation 186 Parameters 186 Examples 187 Basic Example 187 Array Validation0 码力 | 216 页 | 1.58 MB | 1 年前3
Laravel 5.0 Documentation
Collections i. Introduction ii. Basic Usage v. Command Bus i. Introduction ii. Creating Commands iii. Dispatching Commands iv. Queued Commands v. Command Pipeline vi. Core Extension i. Managers & Factories Outside Of CLI iv. Scheduling Artisan Commands ii. Development i. Introduction ii. Building A Command iii. Registering Commands A GitBook version of Laravel 5.0 Documentation Introduction Release App 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 under0 码力 | 242 页 | 1.44 MB | 1 年前3
Laravel 6.0 中文文档LazyCollection::make(function () { $handle = fopen('log.txt', 'r'); while (($line = fgets($handle)) !== false) { yield $line; } }) ->chunk(4) ->map(function ($lines) { return LogEntry::fromLines($lines); un.com 23 between 方法 影响级别:低 在之前版本的 Laravel 中,调度器的 between 方法会出现跨越日期 边界的混乱行为,例如: $schedule->command('list')->between('23:00', '4:00'); 对大多数用户来说,编写上述调度期望的行为是在 23:00 到 4:00 之间每分钟运行一次 list 命令,然而,在之前版本的 目录包含在系统 $PATH 路径 中,以便系统可以找到 laravel 可执行命令。在不同的操作系统中, 这个目录的位置也有所不同,常见的几种操作系列存放位置罗列如 下: macOS 和 GNU/Linux : $HOME/.composer/vendor/bin ($HOME 表示当前用户家目录,可以用 ~ 替代) Windows:%USERPROFILE%\AppData\Roaming\Composer\ve0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.6 中文文档要指定任务只在一台机器上运行,可以在定义调度任务时使用 onOneServer 方法,第一台获取到任务的机器会给这个任务上一把原子级别的锁来阻 止其他服务器同时运行同一个任务: $schedule->command('report:generate') ->fridays() ->at('17:00') ->onOneServer(); 道类时会自动生成。想要了解更多关于频道的信息,可以查看事件广播文档。 Console 目录 Console 目录包含应用所有自定义的 Artisan 命令,这些命令类可以使用 make:command 命令生成。该目录下还有 Console/Kernel 类,在这里可 以注册自定义的 Artisan 命令以及定义调度任务。 Events 目录 这个目录默认不存在,但是可以通过 event:generate 境,你需要安装 Vagrant、VirtualBox,下载 Homestead 对应的 Vagrant 盒 子,经历一系列下载、安装和配置之后才能使用(可能需要花费数小时),如果是 Mac 或 Linux 系统可能还比较顺利,如果是 Windows 系统的 话就得先烧柱香拜拜菩萨再开始,保佑一切顺利,哈哈,开玩笑啦,不过 Windows 确实相对而言出问题的概率比较大。 本文档由 Laravel0 码力 | 377 页 | 14.56 MB | 1 年前3
The Laravel Handbook
install php composer (might take a while) Once installed you should be able to run the php -v command to get the version of PHP installed (same for composer -v ): 6 Now you can go into folder on into that folder and run php artisan serve : cd first php artisan serve php artisancommand> is something you’ll use often in Laravel, as it can do a lot of useful stuff for you. For example If you have troubles reaching this stage, the official documentation has great guides for macOS, Linux and Windows. Open the newly created project folder in VS Code. This should be the file structure: 0 码力 | 111 页 | 14.25 MB | 1 年前3
Laravel 3.2 Documentation...................................................................... 70 Retrieving A Language Line .......................................................................................... 70 Place ........................................................... 122 Contributing to Laravel Via Command-Line ................................................................... 123 Getting Started ... application. You can either download a bundle repository to your bundles directory or use the "Artisan" command-line tool to automatically install them. The Eloquent ORM is the most advanced PHP ActiveRecord0 码力 | 139 页 | 1.13 MB | 1 年前3
Laravel 5.3 中文文档方法中以简单闭包的方式定义。在新安装的 Laravel 5.3 应用中, commands 方法会加 载 routes/console.php 文件,从而允许你基于闭包、以路由风格定义控制台命令: Artisan::command('build {project}', function ($project) { 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 我们将其放到第一个。你可以在应用中进行一次全局搜索以验证是否你在应用中通过旧的方式使 用了这个函数。 Artisan make:console 命令 make:console 命令现在被重命名为 make:command。 认证 认证脚手架 Laravel 框架提供的默认的两个认证控制器已经被分割成四个,这一更改让认证控制器变得更加 清爽、责任更加明确。升级应用认证控制器到最新的最简单方法就是从 GitHub 命令生成,要查看所有有效的命令,可以在终端中 运行 php artisan list make 命令。 Console 目录 Console 目录包含应用所有自定义的 Artisan 命令,这些命令类可以使用 make:command 命令生成。 该目录下还有 console 核心类,在这里可以注册自定义的 Artisan 命令以及定义调度任务。 Events 目录 这个目录默认不存在,但是可以通过 event:generate0 码力 | 691 页 | 9.37 MB | 1 年前3
Laravel 5.2 中文文档软件,我们也完全不用再担心误操作搞乱操作系统 —— 因为 Vagrant 盒子是一次性的, 如果出现错误,可以在数分钟内销毁并重新创建该 Vagrant 盒子! Homestead 可以运行在 Windows、Mac 以及 Linux 系统上,其中已经安装好了 Nginx、 PHP7.0、MySQL、Postgres、Redis、Memcached、Node 以及很多其它开发 Laravel 应用所需要的东西。 注:如果你使用的是 44300)进行访问。 Hosts 文件 不要忘记把 Nginx 站点配置中的域名添加到本地机器上的 hosts 文件中,该文件会将对 本地域名的请求重定向到 Homestead 虚拟机,在 Mac 或 Linux 上,该文件位 于 /etc/hosts,在 Windows 上,位于 C:\Windows\System32\drivers\etc\hosts,添加 方式如下: 192.168.10.10 make 命令生 成 Vagrantfile 和 Homestead.yaml 文件,make 命令将会自动配置 Homestead.yaml 中 的 sites 和 folders 属性。 Mac/Linux: php vendor/bin/homestead make Windows: vendor\bin\homestead make 接下来,在终端中运行 vagrant up 命令然后在浏览器中通过0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 5.1 中文文档d')->all(); 命令&处理器 app/Commands 目录现在被重命名为 app/Jobs,但是并不需要将你的命令移动到新位置,你 可以继续使用 make:command 和 handler:command Artisan 命令生成自己的类。 同样的,app/Handlers 目录被合并到 app/Listeners 目录下,你也不必将已经存在的命令 和事件处理器进行移动和重命名,你可以继续使用 作搞乱 操作系统——因为 Vagrant 盒子是一次性的,如果出现错误,可以在数分钟内销毁并重新创 建该 Vagrant 盒子! Homestead 可以运行在 Windows、Mac 以及 Linux 系统上,其中已经安装好了 Nginx、 PHP5.6、MySQL、Postgres、Redis、Memcached、Node 以及很多其它开发牛逼 Laravel 应用所需要的东西。 注意:如果你使用的是 provider: virtualbox 2.2.2 设置 SSH key 在 Homestead.yaml 文件中还要配置公共 SSH key 的路径,如果没有 SSH key,那么在 Mac 或 Linux 上,可以通过如下命令来生成: ssh-keygen -t rsa -C "you@homestead" 在 Windows 上,可以安装 Git 然后使用 Git 自带的“Git Bash”来执行上述命令。除此之外,0 码力 | 307 页 | 3.46 MB | 1 年前3
《Slides Dev Web》 03. Laravel
24https://laragon.org/ 25https://laravel.com/docs/master/valet 26https://cpriego.github.io/valet-linux/#installation 27https://github.com/valeryan/valet-wsl 28https://jackwhiting.co.uk/posts/setting-u0 码力 | 8 页 | 224.34 KB | 1 年前3
共 10 条
- 1













