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
2 answers

When trying to show a view (edit.blade.php) containing a Laravel Collective form, gives 'Invalid argument supplied for foreach()' - Laravel

When clicking the edit button in show.blade.php it should show edit.blade.php, but gives 'Invalid argument supplied for foreach()' Everything else works... Any ideas what I'm doing wrong? Whole error msg: ErrorException Invalid argument supplied for…
DeltaG35
  • 13
  • 1
  • 3
0
votes
1 answer

How to use Laravel Directive Currency format in Blade with laravel Collective

I have some textbox like this {{{ Form::number('amount', $cash->amount , array('class'=>'form-control')) }}} but I want to display the textbox in currency formatting I have try to make Laravel directive like this Blade::directive('convert', function…
Dewa Dwi
  • 105
  • 2
  • 9
0
votes
1 answer

Laravel 8: Cannot use a scalar value as an array after using pluck()

I'm trying to send an array of my Model Role to Blade like this: public function create() { $roles = Role::pluck('name','id'); return view('admin.users.create', compact(['roles'])); } And on the Blade, I added this:
user7424490
0
votes
1 answer

Default value for laravel collective select

I have a Laravel collective select as follows: {!! Form::select('phone', $numbers, $title, ['class' => 'phone-select2 col4', 'id' => 'phone']) !!} I want to pass default value for dropdown as separate variable from $numbers. So, have passed it as…
0
votes
1 answer

LaravelCollective does not receive the data

I am starting with Laravel 5.5. I have an error when trying to send the data to the edit form: `Illegal string offset 'name' (View: C: \ xampp \ htdocs \ laravel-ads \ resources \ views \ admin \ edit.blade.php) public function edit($id) { …
Fernando López
  • 184
  • 1
  • 11
0
votes
4 answers

Can't seem to find a solution for this error in Laravel

Here is the error: syntax error, unexpected token "=>", expecting ")" And here is my code: {{Form::open (array ('url' => 'logincheck'))}}

{{Form::text ('username', string ('placeholder'=>'Username','maxlength'=>30))}}

Jitry
  • 3
  • 1
0
votes
1 answer

Laravel Annotation scanning route doesn't work

Recently i'm using LaravelCollective/annotations and i'm trying to use it in our project.After implementing the package scanning route don't scan routes which defined in controller installing package: "laravelcollective/annotations": "^8.0.1", and…
DolDurma
  • 15,753
  • 51
  • 198
  • 377
0
votes
0 answers

Action Controller@store not defined in laravel 8 for laravel collective even after setting namespace except I use full route

I'm using Laravel 8 for a new project and trying to use the laravel collective form helper. I want to submit to a method from my 'TransactionsController' from a form in my view. However, when I try to open up the view so I can enter form values, I…
0
votes
2 answers

getting id of selected row in table laravel

So I'm trying CRUD using laravel collective, my problem is how to get the id of a selected row in order to edit it. it looks like if i select a certain column i want to edit in my table, the id that it gets is the id of the last row instead of the…
user14311938
0
votes
3 answers

Laravel 8 with laravelcollective/html 6.2, Action Controller@function not defined

I am new to Laravel and Stackoverflow When Laravel7 is released, I started to learn Laravel. The new version 8.0 was introduced not long ago and I started to try it. I cannot define that the problem is caused by a newer version of Laravelor any…
Wyman Liu
  • 36
  • 1
  • 5
0
votes
1 answer

How to set form labels for radio buttons in Laravel 7

I have some radio buttons, and I would like the functionality that when the label is pressed, the radio button gets selected too - I think this is normal behaviour for a form. {{ Form::radio('theme', 'default', true) }} {{ Form::label('theme1',…
party-ring
  • 1,761
  • 1
  • 16
  • 38
0
votes
1 answer

Onclick function in Laravel collective form

View: Form content {{Form::label('dipno', 'No')}} {{Form::radio('diploma','No',['id'=>'dip','onclick'=>'hasNoDip();'])}} {{Form::number('diplomamarks','',['class' => 'form-control','max'=>'100','step'=>'0.01','id'=>'abc'])}} JavaScript This is the…
Curious Coder
  • 33
  • 1
  • 6
0
votes
0 answers

How to convert select & options to Laravel Form Elements

I have the following select section in HTML and CSS taken from ADMIN LTE