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
1
vote
0 answers

how to pass multiple parameters through route using Laravel collective Forms & HTML Addins?

lets assume we have a Delete button inside a form : {!! Form::open(['route' => ['posts.destroy','id'=>$post->id], 'method' => 'delete']) !!} {!! Form::submit('Delete', ['class' => 'btn btn-danger']) !!} {!! Form::close() !!} i need to pass two…
Mohammed Ali
  • 1,117
  • 1
  • 16
  • 31
1
vote
0 answers

Set ID for select option in Laravel Collective

I have the following in my controller: $companies = Company::pluck('title', 'id')->toArray(); Which gets send to a view with a form using Laravel Collective. Inside this view i have the following piece of code to show the array in the select…
El Klo
  • 173
  • 3
  • 14
1
vote
2 answers

why my form (radio) checked the last element by default in laravel collective

i dont know why my radio button checked by default the last element in laravel collective,in my case the radio button is using for select gender,each element contain representative of the gender as alphabet 'L' or 'P',thank in advance,
firmansmoh
  • 25
  • 3
1
vote
1 answer

Laravel Collective checkbox element for laravel many-many relationship

i wanna use laravel collective for my input form,im using this to input datas for pivot table in laravel eloquent many-to-many,and i wanna use input data using checkbox element(hoby),the problem is idont know why we type at the first parameter of…
firmansmoh
  • 25
  • 3
1
vote
1 answer

How to populate the select opition from Database - Spatie Permission package - Laravel

I was following the article to bring up front end UI for Spatie/permissions. article I was able to understand every part but I cant understand a specific portion, Please navigate to the Roles Part, (please search for 'roles.edit', it will take…
mightyteja
  • 825
  • 1
  • 14
  • 38
1
vote
0 answers

problems in query with select nested on ajax request

I hope you can help me! I am using this method to make a nested select but I can not find a solution, I will share the code of my project I am trying to bring the id of the fruits through the controller and depending on those id, filter by ajax the…
1
vote
2 answers

Save name instead of id from select component in laravel collective

I want to save the name of a department in the table employees, in the select component it displays the name but saves the id, so I think the problem is in it. This is the select component: {{Form::select('nombre_dep', $departamentos, null,…
herMa694
  • 66
  • 10
1
vote
1 answer

How do I change the text field to add icon in Laravel Collective?

How do you modify laravel collective to include the icons within the text filed?
Here is what…
Simona Buga
  • 341
  • 6
  • 22
1
vote
1 answer

How to change text color of item on select2

I need change text color of item on select2, I try this: {!! FORM::label('IdOrigenRechazo', 'Origen de rechazo:') !!} {!! FORM::select('IdOrigenRechazo',$origen->pluck('Descripcion','Id'),null,[ 'class'=>'select2_single form-control…
C47
  • 639
  • 10
  • 19
1
vote
1 answer

How to fill other field in view laravel blade using select2 and laravelcollective

I want to retrieve data using Laravel Collective Select with Select2 from a controller using this code: public function create() { $customers=Customer::all(); $customerAlt= Customer::get()->pluck('customer_name', 'id')->prepend('Please…
1
vote
1 answer

How to understand Laravel Collective like this to HTML

I get some code laravel collective like this : {!! Form::select('gender',['-1'=>'Select…
Ade
  • 154
  • 3
  • 16
1
vote
1 answer

Using Forms in Laravel without including LaravelCollective

Since Laravel collective has been shutdown and is not available, how can we use forms in the laravel framework?
bahdotsh
  • 459
  • 3
  • 17
1
vote
1 answer

How to update unique field in Laravel collective?

I have a user admin panel where admin can create update users and while users have a unique email field. While updating when I don't wanna change the email address it should be as it is. but throwing me error like: The email has already been…
Tridev Shrestha
  • 447
  • 7
  • 21
1
vote
2 answers

Laravel 5.6 populate field after submit

I use the Laravel Collective system to build my forms and I am trying to populate my formfields with the values that were submitted after the page reloads like this: {{ Form::text('id', {{ request('id') }} , array('class' => 'form-control'))…
Michael
  • 556
  • 1
  • 8
  • 27
1
vote
3 answers