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
5
votes
3 answers

Laravelcollective html form errors are not working

Error: BadMethodCallException in FormBuilder.php line 1208: Method hasErrors does not exist. So I have installed Laravelcollective as usual, and most aspects are working. My composer.json "laravelcollective/html": "~5.0", And in my config/app.php…
user6369603
5
votes
3 answers

laravel collective checkbox form

I'm trying to implement checkbox and laravel collective in my form but I get only single value in form, any ideas how to fix it {!! Form::open(array('action'=>'UserController@updateInfo','method'=>'post')) !!} Workdays:
{!!…
ggoran
  • 630
  • 2
  • 12
  • 29
4
votes
2 answers

Class ' Form' not found in view-file.blade.php

I'm trying to render a text input field in my view file. I keep getting this error: "Class 'form' not found in view-file.blade.php" Template: @extends('layouts.app') @section('content')

New

{{ Form::open() }} …
mattyh88
  • 1,585
  • 5
  • 26
  • 48
4
votes
3 answers

Only show button to loged-in user in Laravel

If I logged in as John, how can I show only the red button for John instead of Susan's one? Test system environment: Win10, Laravel5.4, Mysql5.7.19. ... @foreach($jobs as $job) …
JsWizard
  • 1,663
  • 3
  • 21
  • 48
4
votes
2 answers

Laravel collective form, how to upload multiple images?

I wan't to change my form to enable more than one image to be uploaded at a time, this is what I currently have, part of my form: {!! Form::open(['action' => 'PostsController@store', 'method' => 'POST', 'enctype' => 'multipart/form-data'])…
user8244498
4
votes
1 answer

Dropdown menu with eloquent

I have a form and I want to give user ability to choose user in a drop down, but when I return the data it gives me an object, How can I make a drop down select for each user in array. This is my code view {!! Form::select('users',…
OunknownO
  • 1,186
  • 3
  • 21
  • 41
4
votes
0 answers

Laravel keeping remote connection until all commands have finished

Toolset: Laravel 5.2.* LaravelCollective remote package ^5.2 Let's say I have a route http://example.com/npm when I hit this route I process some request parameters and then ssh into a remote server using the LaravelCollective remote…
Joren Van Hocht
  • 845
  • 1
  • 9
  • 21
4
votes
2 answers

Laravel | Checkbox state on edit page

I have a create page for a new Case in Laravel 5, where I can link services to the case. The services are checkboxes in my createCaseForm. The services are stored in the DB so I write to a ManyToMany table to have many Cases which have many…
nclsvh
  • 2,628
  • 5
  • 30
  • 52
4
votes
1 answer

Prevent escaping single quotes when using laravelcollective/html in forms with blade templating

Problem description: I'm encountering some problem with laravel escaping quotes when using the laravelcollective/html component. I need the quotes to remain unescaped in order to keep the javascript code working. Puropose of the code: The user needs…
3
votes
1 answer

Selected values for multiple select on Laravel Collective

I've got a string value from a controller which is: $pickedValues = "1,2"; So what I'm trying to do is set the multiple selected values on the view, here is the select code that I have right now: {{Form::select("selection[]", $data,…
user3235016
  • 317
  • 2
  • 11
3
votes
2 answers

How to set default value in laravel collective form

i'm fetching data from database and want to make dropdown list with one value selected by default i tried this Laravel-5 how to populate select box from database with id value and name value but nothing happen my view file:
Tridev Shrestha
  • 447
  • 7
  • 21
3
votes
1 answer

What is the advantage of using laravelcollective/html component over using the regular simple HTML tags to build view elements?

Do we really need extra component to build HTML elements when we can do it with simple html tags? {!! Form::open(['action' => 'Controller@method']) !!} ... {!! Form::close() !!} is equivalent with
Minilik
  • 171
  • 11
3
votes
1 answer

Sending post and passing address as route

I have the routes Route::get('/login', 'LoginController@index'); Route::post('/login', 'LoginController@login'); the get to display my my login screen and the post for submission. This is my controller login public function index(){ return…
Bruno
  • 173
  • 3
  • 8
3
votes
1 answer

Should I use Laravel's collective Form or traditional html form? Which is better?

I'm a novice in Laravel development. I'm learning about Form. But I'm not understanding why i need to learn again about Form for Laravel as i know how to use form in pure html. I'm confused about that should i use laravel's collective form or Pure…
smk pobon
  • 83
  • 1
  • 10
3
votes
1 answer

Laravel Collective Form checkbox always checked

I'm using Laravel Collective for Forms and having an issue with checkbox. Here is what I'm doing : {!! Form::checkbox('independent',null,['class'=>'form-control', 'required' => 'required'])!!} I've tried changing values for "null", added one more…
Praveen Dabral
  • 2,449
  • 4
  • 32
  • 46
1
2
3
18 19