Laravel 3.2 Documentation...................................................................... 70 Retrieving A Language Line .......................................................................................... 70 Place ....................................................... 122 Contributing to Laravel Via Command-Line ................................................................... 123 Getting Started ....... 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 ActiveRecord implementation0 码力 | 139 页 | 1.13 MB | 1 年前3
Learning Laravelthey reach the controllers and can thus modify or reject requests. Artisan Artisan is the command line tool you can use to control parts of Laravel. There are a lot of commands available to create models resources needed for development. You can also write your own commands to extend the Artisan command line tool. Eloquent ORM To connect your models to various types of databases, Laravel offers its own making new controllers, models, event classes, and a lot more. Artisan is the name of the command-line interface included with Laravel. It provides a number of helpful commands for your use while developing0 码力 | 216 页 | 1.58 MB | 1 年前3
Laravel 5.0 Documentation
on certain routes, remove this line from App\Http\Kernel 's middleware array: 'App\Http\Middleware\VerifyCsrfToken', If you want to use it elsewhere, add this line to $routeMiddleware : 'csrf' => also need to add the Form and HTML facades and service provider. Edit config/app.php , and add this line to the 'providers' array: Global IoC Bindings Views Blade Tag Changes Translation Files Public should be followed: The class namespace declaration must be on the same line as line as the class name. Functions and control structures must use Allman0 码力 | 242 页 | 1.44 MB | 1 年前3
The Laravel Handbook
different terminal windows). Now we’re ready to use Tailwind CSS in our Blade templates! Add this line to the page head : line interface, Artisan. We can write command line applications for our app, in PHP, and execute them, it’s pretty handy 17. Creating commands We’ve used Artisan, the Laravel command line tool0 码力 | 111 页 | 14.25 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); = $this->choice('What is your name?', ['Taylor', 'Dayle'], $defaultIndex); 编写输出 要将输出发送到控制台,使 用 line, info, comment, question 和 error 方法,每个方法都会使 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun 要显示一条错误消息,使用 error 方法。错误消息文本通常是红色: $this->error('Something went wrong!'); 如果你想要显示原生输出,可以使用 line 方法,该方法输出的字符 不带颜色: $this->line('Display this on the screen'); 表格布局 table 方法使输出多行/列格式的数据变得简单,只需要将头和行传 递给该方法,宽度和高度将基于给定数据自动计算:0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.6 中文文档= $this->choice('What is your name?', ['Taylor', 'Dayle'], $defaultIndex); 编写输出 要将输出发送到控制台,使用 line, info, comment, question 和 error 方法,每个方法都会使用相应的 ANSI 颜色以作标识。例如,要显示一条信 息消息给用户, 使用 info 方法在终端显示为绿色: error 方法。错误消息文本通常是红色: $this->error('Something went wrong!'); 如果你想要显示原生输出,可以使用 line 方法,该方法输出的字符不带颜色: $this->line('Display this on the screen'); 表格布局 table 方法使输出多行/列格式的数据变得简单,只需要将头和行传递给该方法,宽度和高度将基于给定数据自动计算: MailMessage) ->line('The introduction to the notification.') ->action('Notification Action', url('/')) ->line('Thank you for using our application0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 5.3 中文文档MailMessage) ->greeting('Hello!') ->line('One of your invoices has been paid!') ->action('View Invoice', $url) ->line('Thank you for using our application!'); } 注:注意到我们在 toMail($notifiable) { return (new MailMessage) ->subject('Notification Subject') ->line('...'); } 自定义模板 你可以通过发布通知扩展包的资源来修改邮件通知所使用的 HTML 和纯文本模板。运行完下面这 个命令之后,邮件通知模板将会存放到 resources/ return (new MailMessage) ->error() ->subject('Notification Subject') ->line('...'); } 5、数据库通知 预备知识 database 通知通道会在数据表中存储通知信息,该表包含诸如通知类型以及用于描述通知的自定 义 JSON 数据之类的信息。0 码力 | 691 页 | 9.37 MB | 1 年前3
Laravel 5.2 中文文档$name = $this->choice('What is your name?', ['Taylor', 'Dayle '], false); 3.4 编写输出 要将输出发送到控制台,使用 line,info, comment, question 和 error 方法,每个方法都会 使用相应的 ANSI 颜色以作标识。 要显示一条信息消息给用户,使用 info 方法。通常,在终端显示为绿色: error 方法。错误消息文本通常是红色: $this->error('Something went wrong!'); 如果你想要显示原生输出,可以使用 line 方法,该方法输出的字符不带颜色: $this->line('Display this on the screen'); 表格布局 table 方法使输出多行/列格式的数据变得简单,只需要将头和行传递给该方法,宽度和高 $this->loadTranslationsFrom(__DIR__.'/path/to/translations ', 'courier'); } 包翻译使用形如 package::file.line 的语法进行引用。所以,你可以使用如下方式从 messages 文件中加载 courier 包的 welcome 行: echo trans('courier::messages.welcome');0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 5.1 中文文档$this->loadTranslationsFrom(__DIR__.'/path/to/translations ', 'courier'); } 包翻译使用形如 package::file.line 的语法进行引用。所以,你可以使用如下方式从 messages 文件中加载 courier 包的 welcome 行: echo trans('courier::messages.welcome');0 码力 | 307 页 | 3.46 MB | 1 年前3
共 9 条
- 1













