Questions tagged [laravel-6]

Laravel 6.0 is a past main version of the open-source PHP web framework created by Taylor Otwell. It was released on September 3, 2019. Use the [laravel] tag for general Laravel related questions.

Laravel 6.0 (LTS) continues the improvements made in Laravel 5.8 by introducing semantic versioning, compatibility with Laravel Vapor, improved authorization responses, job middleware, lazy collections, sub-query improvements, the extraction of frontend scaffolding to the laravel/ui Composer package, and a variety of other bug fixes and usability improvements.

What is new:

  • Semantic Versioning
  • Laravel Vapor Compatibility
  • Improved Exceptions Via Ignition
  • Improved Authorization Responses
  • Job Middleware
  • Lazy Collections
  • Eloquent Subquery Enhancements
  • Laravel UI

Resources:

1918 questions
0
votes
2 answers

How to deploy MySQL database from v5.7.19 to a remote MySQL database of v5.5.6

It's actually my fault that I did not think about it earlier that, my remote server MySQL version (on shared hosting) is 5.5.6, but my local MySQL version is 5.7.19. I developed a Laravel (v6.6.0) Web Application, where I ran the migration on the…
Mayeenul Islam
  • 4,532
  • 5
  • 49
  • 102
0
votes
1 answer

How to get an array of strings instead of object from with() function?

This is the Laravel ProductController and Products has a many-to-many relationship with Tags. /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $products =…
amimaro
  • 175
  • 3
  • 19
0
votes
2 answers
0
votes
1 answer

Laravel 6 view include from sub directory not working

I need to include two blade files navbar & sidebar (located in views/layouts/partials) in another blade template named admin.blade.php (located in views/layouts). So in admin.blade.php. I wrote
Osman Rafi
  • 938
  • 1
  • 16
  • 37
0
votes
0 answers

laravel Validator::make() method throws error when i am using slash in name attribute ( ErrorException: preg_match(): Unknown modifier 'h' )

Here is a snippet of Controller method & Html form it throws an error when I am using a slash in an attribute, everything working fine if I rename to anything else. Rest of thing working fine. Controller public function store(Request…
dipenparmar12
  • 3,042
  • 1
  • 29
  • 39
0
votes
1 answer

Update Comment in Laravel

I am new at Laravel and I want to use if statement inside Laravel Controller. So I have a form tag where I can add comments. I want to edit comments in the same form. Here is my form tag:
0
votes
0 answers

Got internal error 500 when sending email with Laravel 6 in production

I've never configured a Laravel mail settings before. On development, you know, it works but on production, I'm getting internal error 500. In my mail controller, this is giving the error: [..] Mail::to($toEmail)->send(new Support($support)); I've…
Sylar
  • 11,422
  • 25
  • 93
  • 166
0
votes
1 answer

Laravel6 WhereHas Error 500 when using AJAX

im new to Laravel and facing an interesting Issue right now in my App. I have 3 tables. Producers id producer_name Types id type_name Models id model_name device_type_id device_producer_id Within my Producers Model I have defined the…
0
votes
1 answer

How can I test a method being called once

Basically I want to test that when I call a method 2 times another method is called once but I get the following Exception: Mockery\Exception\BadMethodCallException : Received …
ka_lin
  • 9,329
  • 6
  • 35
  • 56
0
votes
1 answer

Laravel - Using Gates on API requests for authorization

I have a laravel app setup perfectly with roles and permissions using gates. For example, in the web routes file I have this which works great: WEB.PHP Route::resource('groups',…
user3274489
  • 186
  • 2
  • 4
  • 15
0
votes
1 answer

Laravel Passport api:auth middleware "Function name must be a string"

We're currently using Laravel version 6 and Passport version 8.1. We are experiencing something weird when using the auth:api middleware. When we call the middleware it always returns an error. "message": "Function name must be a string",…
RTB
  • 5,773
  • 7
  • 33
  • 50
0
votes
1 answer

How to merge collections based on object's particular key's value match in laravel6?

I have three collections. SalaryCollection BonusCollection Deduction Collection All of them have date which is common in some of them. I want to merge these three into one collection in a way that object with same date in three becomes one as a…
Abdulmoiz Ahmer
  • 1,953
  • 17
  • 39
0
votes
2 answers

How to send variable from blade to controller without changing the url

In blade I have a list of books. I want to choose a specific book to show its information. And to do so I want to send with href the id of the book to my controller passing through route. For example i have
0
votes
1 answer

Adding new field containing file in Laravel registration

I wanted to customize the Laravel auth system by adding more fields to it. I wanted the user to upload a few images during registration, and I am not sure on what to add on the create() method in RegisterController to add the file name into the…
felishaww
  • 39
  • 1
  • 6
0
votes
1 answer

How to store an element in a variable from array in Laravel?

I want to store the "area" in the $area variable from $school_info array. Using $area I want more 3 rows stored into 3 different arrays like: $school_info1, $school_info2, $school_info3. public function schooldetailviewid($id) { $school_id =…
Ariful Islam
  • 15
  • 1
  • 4