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

Better refactoring of map function

I'm currently refactoring my methods. I already eliminated long foreach and if states but now i'm struggling a bit with last finishing to have a nice map function. My method looks like. /** * @param \Illuminate\Support\Collection * @return array …
mastercheef85
  • 2,109
  • 3
  • 18
  • 25
0
votes
2 answers

Can I validate form input also without using the laravelcollective/html namespace in a Laravel application?

I am pretty new in PHP and moreover in Laravel framework and I have the following doubt. I am following this tutorial to insert a reCAPTCHA into a form (but my doubt is more related to form validation than to reCAPTCHA):…
user7540582
0
votes
1 answer

is there a way to manually install laravelcollective? laravel 5.4

I have installed Laravel on shared hosting using softoculous. Now I am facing an issue. I have followed SO Answer which did not work for me. How can I manually install laravelcollective package. I also don't have SSH enabled. Therefore, I can't use…
Qasim Ali
  • 587
  • 2
  • 11
  • 28
0
votes
1 answer

Prefill input text with LaravelCollective

I have a Laravel 5.2 application, I have a form with a lot of elements (checkboxes,selects, inputs file, input text, etc). So, I'm using the Form & HTML extension of LaravelCollective So, I'm using form::model to bind the model to the form, that's…
Sredny M Casanova
  • 4,735
  • 21
  • 70
  • 115
0
votes
1 answer

Laravel 5.3 failed to install Laravel Collective via Terminal

I try to install Laravel Collective using this instruction https://laravelcollective.com/docs/5.3/html and I get this error. I'm using Laravel 5.3 Can somebody explain how to solve this problem?
Mirsad Batilovic
  • 446
  • 1
  • 5
  • 18
0
votes
1 answer

LaravelCollective DatetTime

I am using Laravel5.2 and the LaravelCollective form and html helpers. I have a field in my database called fixture_date which is of type datetime. In my view I am using {{ Form::label('fixture_date', 'Date:') }} {{ Form::date('fixture_date',…
Greyhounddad
  • 115
  • 3
  • 9
0
votes
1 answer

Laravel Collective HTML checkboxes form value 'on' instead of '1' is causing issues while add|update a DB element

I am using Laravel Collective HTML and I am creating a form as follow: {!! Form::model($band, ['method' => 'PATCH','route' => ['bands.update', $band->id]]) !!}
...
ReynierPM
  • 17,594
  • 53
  • 193
  • 363
0
votes
2 answers

How to pass id from Html::link to controller

I have a link {{ Html::link('/Edit/$user->s_no', 'Edit', array('id' => $user->s_no,'class' =>'btn btn-info'), true)}} Route Route::get('/Edit/{id}',['as'=>'EditUser','uses'=>'RegistrationController@Edit']); controller public function…
Shanu k k
  • 1,235
  • 2
  • 18
  • 43
0
votes
1 answer

ErrorException in RegistrationController.php line 32: Missing argument 1 for App\Http\Controllers\RegistrationController::Edit()

I am beginner of laravel 5.3 Now i am trying to edit user details My routes: Route::get('/Edit/{id}','RegistrationController@Edit'); View {{ Html::link('/Edit', 'Edit', array('id' => $user->id,'class' =>'btn btn-info'), true)}} …
Shanu k k
  • 1,235
  • 2
  • 18
  • 43
0
votes
1 answer

Return correct array from closure

I use on my code a closure with SSH of LaravelCollective on Laravel 5.3 But my surpise it's when try return exit for any commands, get a truncate result. $exit = array(); SSH::run($cmd, function ($line) use (&$exit) { echo $line.PHP_EOL; …
abkrim
  • 3,512
  • 7
  • 43
  • 69
0
votes
1 answer

laravel 5.2 how to make href inside Form::select

I have: {{ Form::select("toLeague",$select_leagues,null, ['class' => 'selectpicker']) }} I want to do each league in $select_leagues as a link with it's id like: How to do this?
Azhar Nabil
  • 73
  • 11
0
votes
1 answer

TokenMismatchException when resubmitting a form

I am using Laravel 5.3 and the laravelcollective/html form helpers. When I submit a form, if the validation fails it takes you back to the same form using return redirect()->back()->with Then if I resubmit the same form again I will get a…
Juan Girini
  • 1,150
  • 2
  • 16
  • 31
0
votes
1 answer

laravel 5.2 how to put the old value in Form::select during edit table with it's relation

I developed a website for matches.I have table for leagues and table for statistics .table league has relation one to many with statistics table. In page statistics I have Form::select This is the code
Azhar Nabil
  • 73
  • 11
0
votes
1 answer

scanning routes under specific namespace in Laravel annotations

I have controllers under the Panel namespace in "App\Htpp\Controllers" directory, so my namespace is : App\Http\Controllers\Panel I overrided the routeScans() function like below, but did not help! public function routeScans() { $classes =…
0
votes
1 answer

laravel collective html form model is giving a weird case of losing the styles and layouts

i have a weird case where when i change the form::open to form::model and add $user, the page layouts are gone. by this i mean if i use below it works fine and all the layouts are perfectly there. {!! Form::open( ['method'=>'PATCH',…
Mohamed Athif
  • 468
  • 2
  • 6
  • 19