laravelcollective

laravel 5.4 : Laravelcollective/html v5.3.0 requires illuminate/view 5.3.*

你说的曾经没有我的故事 提交于 2019-12-21 03:45:14
问题 I was using Laravelcollective/html v5.3.0 with laravel 5.3 . Now i am using laravel 5.4 . I have forms which are using Laravelcollective/html v5.3.0 . The composer require laravelcollective/html gives me the following error: Installation request for laravelcollective/html ^5.3 -> satisfiable by laravelcollective/html[v5.3.0]. -Conclusion: remove laravel/frameworkv5.4.0 - Conclusion: don't install laravel/framework v5.4.0 When gonna laravel 5.4 support Laravelcollective/html ? 回答1: Update: The

Laravel pluck fields from relations

為{幸葍}努か 提交于 2019-12-17 10:59:07
问题 I have a Seller object which has a related User. I need to fill a select from LaravelCollective so I need to make something like this: {!! Form::selectGroup('seller_id', 'Seller', Seller::with('user')->pluck('user.first_name', 'id')->toArray(), null) !!} The problem is that I cannot take fields from relationships (user.first_name). How can I do it? UPDATE I want to avoid doing this... <?php $sellers = []; Seller::with('user')->get()->each(function ($seller) use (&$sellers) { $sellers[$seller-

Laravel 5: Installing Form and HTML classes without composer

跟風遠走 提交于 2019-12-10 21:18:49
问题 I'm interested in installing Form and HTML classes on Laravel 5 without composer. How can I do this? For those wanting to convince me to use composer: 1) I want to see what it does by doing it manually myself at least once. 2) There is no composer on my hosting. 3) Using composer.phar throws an error: Script php artisan clear-compiled handling the pre-update-cmd event returned with an error , gives a warning: Warning: Composer should be invoked via the CLI version of PHP, not the cgi-fcgi

Switching from Illuminate\Html to Collective\Html, Class 'Illuminate\Html\HtmlServiceProvider' not found

跟風遠走 提交于 2019-12-09 11:13:39
问题 I updated composer.json to remove illuminate\html and add: "require": { "laravelcollective/html": "5.1.*" I removed the providers/aliases from app.php for Illuminate\Html and added the replacements: Collective\Html\HtmlServiceProvider::class, ... 'Form' => Collective\Html\FormFacade::class, 'Html' => Collective\Html\HtmlFacade::class, However when running composer update I receive the output: $ composer update Loading composer repositories with package information Updating dependencies

Laravel 5.2: Undefined class form

女生的网名这么多〃 提交于 2019-12-06 15:17:47
问题 I have a problem with using Form command in a Composer + Laravel 5.2 project with PhpStorm as IDE. I'm using Laravel Collective 5.2. in my composer.json , so it should work. (sadly, it's not which is the reason I'm here...) The providers: Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class, Collective\Html\HtmlServiceProvider::class, my aliases. 'Form' => Collective\Html\FormFacade::class, 'Html' => Collective\Html\HtmlFacade::class, The problem: It's returned as a undefined class when

Using double curly brace in Laravel Collective

走远了吗. 提交于 2019-12-06 15:08:45
I'm trying to create form that create users like this and this form will be use for displaying data also using Form Model Binding: {{ Form::open(['url' => 'admin/users/create']) }} <div class="form-group"> {{ Form::label('first_name', 'First Name : ') }} {{ Form::text('first_name', null, ['class' => 'form-control']) }} </div> <div class="form-group"> {{ Form::label('last_name', 'Last Name : ') }} {{ Form::text('last_name', null, ['class' => 'form-control']) }} </div> {{ Form::close() }} however it showing the code not the actual view, so I see in my browser this code : <form method="POST"

Laravel 5.2: Undefined class form

拈花ヽ惹草 提交于 2019-12-04 19:28:45
I have a problem with using Form command in a Composer + Laravel 5.2 project with PhpStorm as IDE. I'm using Laravel Collective 5.2. in my composer.json , so it should work. (sadly, it's not which is the reason I'm here...) The providers: Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class, Collective\Html\HtmlServiceProvider::class, my aliases. 'Form' => Collective\Html\FormFacade::class, 'Html' => Collective\Html\HtmlFacade::class, The problem: It's returned as a undefined class when I'm using {!! Form::close() !!} or any form command in my blade.php . Did I misunderstood something

Class ' Form' not found in view-file.blade.php

坚强是说给别人听的谎言 提交于 2019-12-04 03:50:15
问题 I'm trying to render a text input field in my view file. I keep getting this error: "Class 'form' not found in view-file.blade.php" Template: @extends('layouts.app') @section('content') <h1>New</h1> {{ Form::open() }} {{ Form::text('my-name') }} {{ Form::close() }} @endsection Composer.json "require": { "php": ">=7.0.0", "fideloper/proxy": "~3.3", "laravel/framework": "5.5.*", "laravel/tinker": "~1.0", "laravelcollective/html": "^5.5.0" }, app.php (config) 'providers' => [ /* * Laravel

Switching from Illuminate\\Html to Collective\\Html, Class 'Illuminate\\Html\\HtmlServiceProvider' not found

喜你入骨 提交于 2019-12-03 14:02:58
I updated composer.json to remove illuminate\html and add: "require": { "laravelcollective/html": "5.1.*" I removed the providers/aliases from app.php for Illuminate\Html and added the replacements: Collective\Html\HtmlServiceProvider::class, ... 'Form' => Collective\Html\FormFacade::class, 'Html' => Collective\Html\HtmlFacade::class, However when running composer update I receive the output: $ composer update Loading composer repositories with package information Updating dependencies (including require-dev) - Removing illuminate/html (v5.0.0) - Installing laravelcollective/html (v5.1.4)

laravel 5.4 : Laravelcollective/html v5.3.0 requires illuminate/view 5.3.*

♀尐吖头ヾ 提交于 2019-12-03 11:08:00
I was using Laravelcollective/html v5.3.0 with laravel 5.3 . Now i am using laravel 5.4 . I have forms which are using Laravelcollective/html v5.3.0 . The composer require laravelcollective/html gives me the following error: Installation request for laravelcollective/html ^5.3 -> satisfiable by laravelcollective/html[v5.3.0]. -Conclusion: remove laravel/frameworkv5.4.0 - Conclusion: don't install laravel/framework v5.4.0 When gonna laravel 5.4 support Laravelcollective/html ? PaladiN Update: The Laravelcollective/html has been updated to Laravel 5.4 but there is no any changes in the