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

Laravel collective form and foreach loop

I want to connect my dropdown select form with database, currentli I have sth like this: @foreach( $clients as $client) {!! Form::select('connected_with', ['name' => $client->name .…
1
vote
1 answer

Laravel - Not receiving fields from nested inputs

I'm using Laravel 5.3 and the same blade view to create/edit a casa(house in portuguese) and contato(contact in portuguese). I have a form to submit into 2 tables(contatos casas). It was working fine until I changed the name of the first 6 fields …
GabrielFiel
  • 67
  • 2
  • 7
1
vote
3 answers

Laravel Collective date format

Is there a way to set Laravel Collective date picker format to yyyy-mm-dd? I am using now: {{ Form::date('deadline', null,['class' => 'form-control']) }} but in the front end I get an input field with mm/dd/yyyy inside. I tried parsing the Carbon…
Norgul
  • 4,613
  • 13
  • 61
  • 144
1
vote
1 answer

laravelcollective form POST not reaching store action

I am trying to store data from my form through POST but it does not reach my store action, i have tried several methods both none worked for me yet. Store method in ContactController: public function store(StoreMessage $request) { …
jordibenck
  • 175
  • 1
  • 4
  • 15
1
vote
1 answer

Laravel checkboxes with many-to-many relationship

I am pulling diseases from DB and presenting them in front-end with checkboxes:
@foreach($diseases as $disease)
Norgul
  • 4,613
  • 13
  • 61
  • 144
1
vote
2 answers

Laravel collective select placeholder not working when multiple is to true {{ Form::select() }}

I have a problem with Laravel collective select placeholder not working {{ Form::select('album',$albums,$selected, ['class'=>'form-control','placeholder'=>'select album' ]) }} But when i allow tags to true like this using select 2, it works fine, …
1
vote
1 answer

Class 'Form' not found (View: /path/to/laravel/resources/views/posts/create.blade.php)

I am trying to use Forms but keep getting this error: Class 'Form' not found and Class 'Form' not found (View: /path/to/laravel/resources/views/posts/create.blade.php) my create.blade.php @section('content')
1
vote
4 answers

Laravel & LaravelCollective HTML/Forms Error

I'm building a simple form with a username and password. When I construct a username field like this: {{ Form::text('username') }} My page loads without issue. As soon as I want to define a class like this: {{ Form::text('username', ['class' =>…
Vranvs
  • 1,411
  • 4
  • 17
  • 38
1
vote
4 answers

Laravel Blade Form::select -- now forcing escape?

I've had this code running since L5.0. With the latest update to L5.3.30 + the dependencies, it appears to be broken. Perhaps I've done something wrong since the beginning? Here is the simplified code: {!! Form::select('currency',…
1
vote
3 answers

Retrieve data from Collection object in Laravel

I have something like this in my controller: $item = item::where('id',1)->first(); I get a Collective object. I want to retrieve a specific table from such item. $item->only(['name]); So I can give it to the view. However it won't…
prgrm
  • 3,734
  • 14
  • 40
  • 80
1
vote
1 answer

ErrorException in IncomesController.php line 45: Undefined variable: type_id

This is the error it gives me back when i try to submit a new Income. I'm new on Laravel 5.3 so i have a lot of errors specially on FK and relationships; be free to point it out. And to point out i already have 3 entries of types, and i can both see…
1
vote
2 answers

Drop-Down Lists from laravelcollective?

I use dropdownlist from laravelcollective. I am wondering how I can use (Selected Default) with this if I fetch data from a database. Here follows my source code: {!! Form::select('port',$ports,null,['class'=>'form-control']) !!} The selected…
allaghi
  • 165
  • 3
  • 12
1
vote
1 answer

laravelcollective/html not finding any of my controllers

I am getting this error from a login page Action App\Http\Controllers\Admin\LoginController@authenticate not defined. (View: /Applications/XAMPP/xamppfiles/htdocs/lectureme/resources/views/admin/login.blade.php) I know for certain that this…
A. Appleby
  • 469
  • 1
  • 10
  • 23
1
vote
0 answers

Using Laravel Collective Forms with complex form fields

I'm using Laravel Collective Forms & HTML. I have a form field that looks like this:
{!! Form::text('date', (!empty($entry['date_submit']) ? $entry['date_submit']->format('M j, Y') : null), ['class' =>'date-time…
TH1981
  • 3,105
  • 7
  • 42
  • 78
1
vote
1 answer

Add styles and disable individual options in a Laravel Form Collective HTML select

I'm trying to reproduce this HTML form using Laravel Collective's HTML select: This is what I have in my blade: {{…
Eugene van der Merwe
  • 4,390
  • 1
  • 35
  • 48