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

Include Bootstrap glyphs in Laravel Collective link

I'm using Laravel Collective's link_to_route() method to create a link. I want to include a Bootstrap glyph with this link. As it is now, it's printing the actual Html code. Any tips on how to do this? My current code:
zundi
  • 2,361
  • 1
  • 28
  • 45
0
votes
1 answer

Accessor parameter is giving me null in Laravel 5.3

I am working on one to many relationship between tasks and Projects, i.e. a task can only belong to a single project, and I have used laravel's Accessor to get the selected project in my view in drop down: my code is as follow: public function…
Kashif Ullah
  • 672
  • 6
  • 19
0
votes
2 answers

Getting relating model attributes to populate multi-select

I'm using Laravel 5.3, Entrust for permissions, LaravelCollective for Form functionality and Chosen for to manipulate the select boxes. I've bound my form to a model and my form is populating correctly, however I'm struggling to populate the multi…
SGouws
  • 321
  • 1
  • 12
0
votes
2 answers

I can't find HTML tag in Collective\Html laravel

In my old application of Laravel 4.2 I used a lot following syntax in my blade templates {{HTML::link('admin/categories','Manage Categories')}} {{HTML::style('css/normalize')}} Now I am converting it to Laravel 5.3 and I read illuminate package is…
Kamal Panhwar
  • 2,345
  • 3
  • 21
  • 37
0
votes
1 answer

Laravel select optgroup and separated values from database

I write form to send values to database: {!! Form::model($product, ['method'=>'PATCH','class'=>'form-horizontal','action'=>['ProductsController@updatechangeStatus', $product->id]]) !!} {{ Form::select('userstan_id', array( …
major697
  • 139
  • 1
  • 2
  • 15
0
votes
1 answer

How to populate laravel SELECT default value from the database

Hi i'm using laravel collective, im trying to load the selected default value from the datbase // $ring->homepage // holds 0 or 1 {!! Form::select('onhome', [0 => 'Nee', 1 => 'Ja'], null, ['class' => 'form-control selectpicker']) !!} According to…
Rubberduck1337106092
  • 1,294
  • 5
  • 21
  • 38
0
votes
1 answer

Laravel 5.1 Net_SFTP has a deprecated constructor

I'm using Laravel 5.1 with the package laravelcollective/remote to run an SSH command on a remote server: \SSH::into('myserver')->run($commands); But I'm getting the following error message: Methods with the same name as their class will not be…
HTMHell
  • 5,761
  • 5
  • 37
  • 79
0
votes
1 answer

Laravel 5.2 injecting object into Blade template

I am binding an employee model into a Blade template, and want to place the result of an eager load relation into a field. In my controller I build the collection for the page as: $employee = User::with('country',…
TheRealPapa
  • 4,393
  • 8
  • 71
  • 155
0
votes
1 answer

Laravel 5.1 with LaravelCollective Forms actions are loading as HTTP instead of HTTPS

I'm using the LaravelCollective HTML module to add forms to some views. The problem is that the actions in the forms are being generated at HTTP urls instead of HTTPS. Is there a way to make it just use whatever protocol the page loads as without…
LoneWolfPR
  • 3,978
  • 12
  • 48
  • 84
0
votes
1 answer

Update data with Laravel Collective forms

I have an edit form with Laravel Collective but when clicking the button, the data do not update. Below are my codes. Form: {!! Form::model($post, ['route' => ['/post/update/', $post->id]]) !!} {{ method_field('PATCH') }}
user4383363
0
votes
1 answer

Should I use "laravelcollective/html": "5.2." instead of "illuminate/html" in my composer.json file going forward with Laravel 5.2

The heading pretty much says it all, I'm just a bit concerned that "laravelcollective/html" might be deprecated in the future for another package. Aren't there form helper methods that are build into the framework like in ASP.NET MVC?
Tim Kruger
  • 863
  • 2
  • 10
  • 26
0
votes
2 answers

Laravel class 'Form' not found

I have a problem with Laravel Form & HTML. I ran Composer. composer require illuminate/html It worked just fine and I added Illuminate\Html\HtmlServiceProvider::class, to my app.php. I also added 'Form' => Illuminate\Html\FormFacade::class, and…
user259584
  • 65
  • 1
  • 7
0
votes
1 answer

laravel use SSH in controller

Im trying to use SSH:: command in my controller but I'm facing error: Class 'SSH' not found my controller: namespace App\Http\Controllers; use Session; use DB; use SSH; and call action: SSH::run( array( 'cd…
Arnas Pecelis
  • 35
  • 2
  • 7
0
votes
3 answers

Class 'Collective\Html\HtmlServiceProvider' not found in laravel 5?

i currently installed laravel and trying to create my first app, however when i required the laravel collective i get error above. here is my composer.json { "require": { "laravel/installer": "~1.1", "laravelcollective/html": "5.1.*" …
johnguild
  • 435
  • 1
  • 5
  • 25
0
votes
0 answers

Laravel 5 Composer Require laravelcollective/html Error

When I was going to require laravelcollective/html, there is something wrong! I searched this error in Google but didn't find any answer. Any help? Thanks a lot! D:\wamp\www\laravel-5.1>composer require…
1 2 3
18
19