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

How to use Collective in laravel5.3

I've upgraded From L4.2 to L5.3.20 and I've tried to use with Collective-laravel FormFacades and HTMLFacade with below code but I got the errors result in my drop down. how should I correct it {{ Form::select('employeeID', $employees,null,['class'…
DMS-KH
  • 2,669
  • 8
  • 43
  • 73
1
vote
1 answer

automatic method POST or PUT in laravel form collective

I am using laravel form collective for automatic form generation in project. I used same form for add and update with route model binding {!! Form::model($operator, ['route' => ['operator.update', $operator->id]]) !!} and route for this is …
Dhiraj Wakchaure
  • 2,596
  • 6
  • 21
  • 37
1
vote
2 answers

My form is not populating when there is some validation error in the input data. Laravel Collective

Hope yo are all doing great. I am using Laravel 5.3 and a package LaravelCollective for form-model binding. I have subjects array that I want to validate and then store in database if there is no error in the input data. The following snippets show…
ahmednawazbutt
  • 823
  • 12
  • 34
1
vote
1 answer

Laravel collective add PHP variable to input type number

I am trying to add a PHP variable to an input type number, as the maximum value allowed in this field. I am using Laravel collective. My input syntax: {!! Form::number('credit_amount', '0.00', ['step' => '0.01', 'min' => '0.01', 'max' => '{{…
TheRealPapa
  • 4,393
  • 8
  • 71
  • 155
1
vote
4 answers

Whitespace not caught by Laravel validation

I'm trying to validate a password input field, and spaces are not getting caught by the validator. The password field should be a minimum of 6 characters, and the regex should allow spaces within a password, but not at the beginning or end (I've…
DanielRH
  • 75
  • 1
  • 9
1
vote
3 answers

LaravelCollective input default value

I'm building a form with LaravelCollective and I'm taking the benefits from Form Model Binding to use it creating or editing the model. I have this field: {{ Form::text('price', null, ['class' => 'form-control']) }} If I open the form with…
Alan
  • 2,559
  • 4
  • 32
  • 53
1
vote
2 answers

Form dropdown menu passing array as object

I'm trying to pass trough form dropdown selection but I can't pass array(the rest of the form is using objects. This is my code Controller $var->user = $request->users->id; view {!! Form::select('users', $users,null, ['placeholder' => 'Pick a…
OunknownO
  • 1,186
  • 3
  • 21
  • 41
1
vote
1 answer

How to use "laravelcollective/html" with blade

I'm trying to pull data from folder so that a user can download it I'm trying something like this {!! Html::link('public/{{$file->name}}', '{{$file->name}}') !!} but it throws out this name); ?> name);…
OunknownO
  • 1,186
  • 3
  • 21
  • 41
1
vote
1 answer

Using double curly brace in Laravel Collective

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']) }}
{{ Form::label('first_name',…
Gujarat Santana
  • 9,854
  • 17
  • 53
  • 75
1
vote
1 answer

html class not found in laravel template

This is my main.blade.php file App Name - @yield('title')
AFS
  • 1,433
  • 6
  • 28
  • 52
1
vote
1 answer

Laravel 5.2 - Passing a value and text to select box

In my controller I am passing a multiple array to the view. The arrays that I am passing look like this: $charts['names'] = ['Artikler lest', 'Antall kommentarer', 'Antall "bli med"', 'Tid på døgnet']; $charts['values'] = ['Article', 'Comment',…
Ludwig
  • 1,401
  • 13
  • 62
  • 125
1
vote
3 answers

Laravel 5.2: While moving to production, class "Collective\Html\HtmlServiceProvider" not found in vendor folder

I have been trying to move my laravel app to production. I following below steps 1. git clone 2. composer install 3. set env variables 4. (artisan key:generate) 5. artisan migrate --seed But when i ran composer install, am getting the following…
sarav
  • 228
  • 1
  • 7
1
vote
2 answers

Laravel 5.2: Undefined class form

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…
Danishdjinn
  • 607
  • 1
  • 6
  • 11
1
vote
1 answer

select id attribute not getting set using Laravel 5.2 and "laravelcollective/html": "5.2.*"

select's id attribute is not getting set by using {{ Form::select('language', $options, 'en_ZA', array('id' => 'language')) }} In my view and "laravelcollective/html": "5.2.*" in composer.json. I also wanted to know going forward using Laravel…
Tim Kruger
  • 863
  • 2
  • 10
  • 26
1
vote
2 answers

Passing PHP Variable from GET to current form if isset laravel 5

Ok, I've searched the last couple of days and haven't been able to find an answer that made sense. I'm positive it's doable but not sure if I'm in over my head. I'm new to Laravel 5 and also pretty new to PHP. I'm trying to send a inputted string…
Lost Soul
  • 15
  • 4