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
2
votes
1 answer

Get the Carbon datetime difference over 24 hours in Laravel

Below is code to get the difference of used time in Laravel with Collective. but this code only counts in 24 hours nevertheless it over a day. How could I modify my Collective code to achieve my goal? Thanks:) This code made on Laravel 5.4v and…
JsWizard
  • 1,663
  • 3
  • 21
  • 48
2
votes
2 answers

composer require laravelcollective html 'doesnt download dependancy

Please see when When I run composer install please assist, I am new to laravel and I cannot download dependency for laravelcollective/html ... I am using laravel 5.5.13 I want to require laravelcollective/html however I face the following…
Neo Sono
  • 186
  • 1
  • 4
  • 18
2
votes
2 answers

Laravel Collective Formbuilder label localization

I just started using the Laravel Collective Form Service Provider/FormBuilder. I use this custom component for rendering a text field with label. The problem is that I am trying to translate it's label with the __() function but the $name variable…
Floris
  • 2,727
  • 2
  • 27
  • 47
2
votes
2 answers

Laravel not adhering to Mass Assignment $fillable rules for related model update

I have business and profile models in my Laravel app. A business hasOne profile. I've created a patch method form using the form builder to update my business and profile tables. Blade {!! Form::model($business, ['route' => ['business.edit.post',…
InvalidSyntax
  • 9,131
  • 20
  • 80
  • 127
2
votes
1 answer

Call to undefined method Collective

I'm new in laravel and i have some problems with installation of collective Laravel, Despite i folow the collectiveLaravel's instalation Tutorial correctely. FatalErrorException in Facade.php line 217: Call to undefined method…
Sadiki Ayoub
  • 101
  • 1
  • 10
2
votes
5 answers

Class 'HTML' not found (View: C:\xampp\htdocs\laravel_demo\resources\views\pages\registration.blade.php)

I am beginner in laravel 5.3 and i have added href link to my html form it's get an error like Class 'HTML' not found (View: C:\xampp\htdocs\laravel_demo\resources\views\pages\registration.blade.php) I refer the following link for installing…
Shanu k k
  • 1,235
  • 2
  • 18
  • 43
2
votes
1 answer

laravel collective form database autoselect

I have forms that will store some data in DB, but next time when I open that page I want autoselected values selected already {!! Form::select('week_starts', [ 'Monday' => 'Monday', …
ggoran
  • 630
  • 2
  • 12
  • 29
2
votes
1 answer

Fill LaravelCollective select with data from DB

I'm using LaravelCollective because of the benefits that Form Model Binding offers. My problem is that I need to fill a select with Categories from the Database so I'm making something like this: {!! Form::select('size', Category::pluck('name'),…
Alan
  • 2,559
  • 4
  • 32
  • 53
2
votes
1 answer

set a default value for select field in Laravel using collective form builder?

I have a select field in my form for selecting admin roles.I need to set a default value for that select field like 'Select Role'.I am using Laravel 5.2 and collective form builder class.here is my code {!!…
Sandeep Bhaskaran
  • 621
  • 1
  • 7
  • 14
2
votes
2 answers

Named Route Includes Index

How do you remove the index from a named route? Routes 'reports/finance'), function () { Route::controller('/', 'Reports\Finance\HomeController', ['getIndex' => 'reports.finance']); }); View {{…
mybigman
  • 179
  • 2
  • 12
1
vote
1 answer

Confirm delete using sweetalert in Laravel Form Collective

I'm a beginner in using laravel, please help. I'm using sweet alert to ask for confirmation before deleting. The error says that it is missing a required parameter for destroy, though I am certainly sure that I am passing an id to the function…
J.J
  • 33
  • 5
1
vote
1 answer

Alpine.js Undefined variable: dispatch

I am using alpine.js in my laravel 7.x application. I am also using LaravelCollective/html in order to build a very basic form. The idea here is that I am attempting to change the href of my anchor tag based on what select input is picked. I am…
randombits
  • 47,058
  • 76
  • 251
  • 433
1
vote
0 answers

Can't delete item from DB, tried several methods

Can't delete product with any method combination. Tried with
, Laravel Collective Form::, and others. I've looked around and there is similar issues like mine and none of the answers have solved my issue yet. Made several…
Fer Toasted
  • 1,274
  • 1
  • 11
  • 27
1
vote
1 answer

Put a Max value in time input (Laravel Collective)

Does anyone know how to put a maximum value for a time input in Laravel Collective? I have tried this but it doesn't work: {!!Form::time('tiempo[]', 'max="04:00"')!!}
Lucas Tomic
  • 62
  • 2
  • 14
1
vote
2 answers

Laravel - Select input not keeping old value

I have a piece of code: {!! Form::select('option_employee_review', old('option_employee_review', $employeeReviews), $employeeReviews, ['id' => 'option_employee_review', 'class' => 'form-control ']); !!} It saves the value to the database correct.…
user13319578