Questions tagged [laravelcollective]

Use for questions about use of or contribution to the LaravelCollective; a collection of Laravel components such as Annotations, Html, Form, SSH, that have been removed from the core Laravel framework.

As the Laravel PHP Framework has grown, and the set of core components has been refined, some components that were once part of the core features have been removed.

The Laravel Collective Community exists to continue support and evolution of these components.

Documentation for LaravelCollective Packages.

List of Laravel Collective components

  • bus: Laravel Command Bus
  • html: HTML and Form Builders for the Laravel Framework
  • remote: Remote SSH Access for the Laravel Framework
  • iron-queue: IronMQ Driver For Laravel Queue
  • annotations: Route and Event Annotations for the Laravel Framework

References

281 questions
44
votes
4 answers

Laravel pluck fields from relations

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(),…
Alan
  • 2,559
  • 4
  • 32
  • 53
27
votes
6 answers

Distinct values with pluck

I'm trying to retrieve data from database and bind them to a html select tag, and to bind them i need to use pluck so i get the field i want to show in a array(key => value), because of FORM::select. The normal pluck gets all the results, while i…
Arlind Hajdari
  • 465
  • 1
  • 7
  • 14
19
votes
3 answers

Add icon to Laravelcollective submit button

I'm trying to add a trash icon to submit button and I tried this : {!! Form::submit('', ['class' => 'btn btn-warning btn-sm fa fa-trash']) !!} but the icon won't show. How to solve this ? thanks in advance!
Ariando
  • 1,391
  • 4
  • 24
  • 43
17
votes
5 answers

Laravel 5 Class 'Collective\Html\HtmlServiceProvider' not found on AWS

I know there are a bunch of other questions floating around out there with the same error, such as: Class 'Illuminate\Html\HtmlServiceProvider' not found Laravel 5 My problem is that I've followed all suggested steps to solve this on my local…
carbide20
  • 1,717
  • 6
  • 29
  • 52
14
votes
4 answers

How can I include html within a form label using Laravel Collective?

Reading through this SO thread I have read that I can create a new macro to create custom form inputs. I am brand new to Laravel development (big surprise) & it seems a tad overkill for such a small thing. Is there a "simpler" way to have something…
Damon
  • 4,151
  • 13
  • 52
  • 108
13
votes
2 answers

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

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…
Gammer
  • 5,453
  • 20
  • 78
  • 121
9
votes
1 answer

Laravel collectivehtml secure route or url

in my view page I have this route: {!! Form::open(['url' => 'forumcomment/' . $forum->slug, 'files'=>false, 'id' => 'qw-commentform' ,'class' => 'qt-clearfix']) !!}
{!!…
Sid Heart
  • 743
  • 3
  • 14
  • 38
9
votes
3 answers

How to set custom data-attribute to option with Laravel Collective

I have a form, inside I have a select with some options and I'm using Laravel Collective Forms to build it, I have something like: {!! Form::select('size', $data, $selecteds, ['multiple' => true]) !!} All going well until here, but now I need to…
Sredny M Casanova
  • 4,735
  • 21
  • 70
  • 115
8
votes
2 answers

Use inside Form Label in Blade template

In html I can use tag inside form label like this: Using Laravel Blade, the code for label is like this: {!! Form::label('name','Name:',['class'=>'class-name'])…
smartrahat
  • 5,381
  • 6
  • 47
  • 68
7
votes
1 answer

how to apply css class to laravel collective select

i used laravel 5.3 for my project, i used laravel form collective into it code is below {{ Form::select('size', ['surat' => 'surat', 'mumbai' => 'mumbai','hongkong' => 'hongkong'], 'hongkong',['multiple'=>'true'], array('class'=> 'form-control') )…
HirenMangukiya
  • 645
  • 3
  • 13
  • 30
7
votes
1 answer

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

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: …
Dylan
  • 868
  • 12
  • 21
6
votes
1 answer

Laravel Nova 4 customize layout

Since Nova 4 has no blades anymore that you could publish, how could you approach customization the best in for example the head navbar next to the searchbar? I'd like to add a drop-down there but I don't know where to start or what to change? In…
NoahNxT
  • 156
  • 12
6
votes
4 answers

UnexpectedValueException Could not parse version constraint when trying to instal laravelcollective

I am new to laravel and I am trying to install laravelcollective. I am just following to documentation here and I am using this from my project directory: composer require "laravelcollective/html":"^5.4.0" Unfortunately, immediately after I press…
incense_stick
  • 478
  • 1
  • 6
  • 14
5
votes
1 answer

Can I use LaravelCollective/html for a Laravel 8 application?

I used the laravelcollective/html package in my Laravel 5 Blade/Bootstrap applications, and now I see that there is no support for Laravel 8. Can you advise something similar compatible with Laravel 8 or this library, OK?
Petro Gromovo
  • 1,755
  • 5
  • 33
  • 91
5
votes
1 answer

Auto populate "Form::text" from "Form::model" after adding extra attribute(class) in Laravel

I am currently rendering and populating a form in laravel using the laravelcollective plugin. this is working as expected: {!! Form::model($user, ['action' => 'user@updateUser']) !!}
{!! Form::label('user_name', 'Name')…
steve
  • 471
  • 6
  • 15
1
2 3
18 19