Laravel 3.2 Documentation........................................................................................... 3 License Information .................................................................................... ............................................................................ 129 1 GENERAL LARAVEL DOCUMENTATION The Basics Welcome to the Laravel documentation. These documents were would love to talk to you about it, so don't be a stranger! License Information Laravel is open-sourced software licensed under the MIT License. LARAVEL CHANGE LOG Laravel 3.2.8 Fix double slash0 码力 | 139 页 | 1.13 MB | 1 年前3
Laravel 5.0 Documentation
5.0 New Folder Structure Contracts Route Cache Route Middleware Controller Method Injection public function createPost(Request $request, PostRepository $posts) { // } User registration, authentication strings. For example, check out the following event: class PodcastWasPurchased { public $podcast; public function __construct(Podcast $podcast) { $this->podcast = $podcast; } handler will receive the event object instead of a list of data: class ReportPodcastPurchase { public function handle(PodcastWasPurchased $event) { // } } For more information on working0 码力 | 242 页 | 1.44 MB | 1 年前3
Learning Laravel145 beanstalkd 145 null 145 Chapter 49: Remove public from URL in laravel 146 Introduction 146 Examples 146 How to do that? 146 Remove the public from url 146 Chapter 50: Requests 147 Examples https://riptutorial.com/ 10 * Run the migrations. * * @return void */ public function up() { Schema::create('admins', function (Blueprint $table) { }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('admins'); } } edit config/auth.php 'guards'0 码力 | 216 页 | 1.58 MB | 1 年前3
《Slides Dev Web》02. Introduction aux frameworks PHP
scène Composer30, le gestionnaire de paquet pour PHP. Packagist31 est le dépôt en ligne de paquets public et utilisé par défaut. composer.json { "require": { "twig/twig": "^2.0", "gabordemooij/redbean": you don’t use the standard names? FAQ: General [en ligne]. [Consulté le 7 février 2017]. Disponible à l'adresse : https://docs.djangoproject.com/en/1.11/faq/general/#django-appears-to-be-a-mvc- framewor0 码力 | 24 页 | 1.03 MB | 1 年前3
Laravel 6.0 中文文档判断用户是否可以查看指定的航班. * * @param \App\User $user * @param \App\Flight $flight * @return mixed */ public function view(User $user, Flight $flight) { return $this->deny('Explanation of denial.'); } 本文档由学院君提供 /** * 执行任务 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 5 * * @return void */ public function handle() { Redis::throttle('key')->block(0)->allow(1)->every (5)->then(function () { RateLimited { /** * 处理队列任务. * * @param mixed $job * @param callable $next * @return mixed */ public function handle($job, $next) { Redis::throttle('key') ->block(0)->allow(1)->every(5) ->then(function0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.6 中文文档OrderChannel { /** * Create a new channel instance. * * @return void */ public function __construct() { // } /** * Authenticate the user's access @param \App\User $user * @param \App\Order $order * @return array|bool */ public function join(User $user, Order $order) { return $user->id === $order->user_id; { /** * Bootstrap any application services. * * @return void */ public function boot() { Blade::withoutDoubleEncoding(); } } 缓存 频率限制器 tooManyAttempts0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 5.1 中文文档* @param \Closure $next * @param string $role * @return mixed */ public function handle($request, Closure $next, $role) { if (! $request->user()->hasRole($role)) }]); 更多关于中间件的内容,请查看中间件一节。 测试革新 Laravel 中内置的测试功能获得了引入注目的提升,多个新方法提供了平滑的,富有变现力 的接口和应用进行交互并测试响应: public function testNewUserRegistration(){ $this->visit('/register') ->type('Taylor', 'name') 参数的默认值改为数组: public static function create(array $attributes = []){ // Your custom implementation } find 方法 如果你要在自己的模型中重写 find 方法并在其中调用 parent::find(),应该改由调用 Eloquent 查询构建器的 find 方法: public static0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 5.3 中文文档SerializesModels; /** * Build the message. * * @return $this */ public function build() 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 Update the avatar for the user. * * @param Request $request * @return Response */ public function update(Request $request) { $path = $request->file('avatar')->store('avatars', 's3'); if the given user can create posts. * * @param \App\User $user * @return bool */ public function create(User $user) { // } AuthorizesResources Trait 本文档由 Laravel 学院(LaravelAcademy0 码力 | 691 页 | 9.37 MB | 1 年前3
Laravel 5.2 中文文档11 * @param \Closure|string|null $concrete * @param bool $shared * @return void */ public function bind($abstract, $concrete = null, $shared = false) { // } Code Style Fixer to: /home/vagrant/Code/Laravel/public 你还可以通过设置 hhvm 为 true 让所有的 Homestead 站点使用 HHVM: sites: - map: homestead.app to: /home/vagrant/Code/Laravel/public hhvm: true 默认情况下,每个站点都可以通过 命令,需要在定义站点时设 置 schedule 为 true: sites: - map: homestead.app to: /home/vagrant/Code/Laravel/public schedule: true 该站点的 Cron 任务会被定义在虚拟机的 /etc/cron.d 目录下。 端口转发配置 默认情况下,Homestead 端口转发配置如下:0 码力 | 377 页 | 4.56 MB | 1 年前3
The Laravel Handbook
Illuminate\Http\Request; use App\Models\Dog; class NewDogFormController extends Controller { public function create(Request $request) { $this->validate($request, [ 'name' we add it: 50 //... class NewDogFormController extends Controller { //... public function delete($id) { $dog = Dog::find($id); $dog->delete(); return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('dogs', function (Blueprint $table) {0 码力 | 111 页 | 14.25 MB | 1 年前3
共 13 条
- 1
- 2













