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
1 answer

Laravel 6 | How do i make my last 4 posts show in index without messing up the page?

I am currently making a news site with laravel 6, but when i view the posts dynamically, the page gets all messed up. This is how it is supposed to look (this is static) And this is how it looks dynamically My index file with the error is as…
Mikail
  • 1
0
votes
1 answer

Js issue in laravel

I have a problem with js issue in laravel. Here is my code. Controller: CollectionController : public function create(Request $request) { $collections = new Collections() ; $collections->collectionNo = dechex(uniqid()); …
Russel Monzur
  • 153
  • 1
  • 1
  • 10
0
votes
1 answer

Laravel "Can't write image data to path ({$path})"

I create Laravel project on ubuntu 18.4. I upload my project in /var/www/html/ and i upload images in home/sun/download/ after run this code: $imageName = "thumb_{$size}.{$extension}"; $routePath = $url . '/products/' . $product->id .…
mySun
  • 1,550
  • 5
  • 32
  • 52
0
votes
0 answers

player.js:1 Uncaught SyntaxError: Identifier 'Player' has already been declared laravel-6

i have an laravel project and just implemented some scripts in it and i keep gettinf this error Uncaught SyntaxError: Identifier 'Player' has already been declared at player.js:1 Uncaught SyntaxError: Identifier 'canvas' has already been…
jai012
  • 1
  • 1
0
votes
1 answer

Eager loading not pulling relationship model

Eager loading not pulling relation model. Hi, Im using Laravel 6. Our database was created with Zend so our model is a bit strange; I have to set the primary keys. // Customer model protected $table = 'customer'; protected $primaryKey =…
Sylar
  • 11,422
  • 25
  • 93
  • 166
0
votes
1 answer

Laravel many to many relationship collection empty

When I return with my relationship with the collection is always empty, I do have data in my database. Client model public function orders() { return $this->belongsToMany(Service::class)->withTimestamps(); } Service model public function…
Sam
  • 1,546
  • 4
  • 14
  • 22
0
votes
1 answer

Accept a payment in Laravel 6 with Stripe

I'm trying to integrate a payment system on my Laravel 6 project. But I Have no idea how to retrieve the ClientSecret from my serverside I have this in my CheckOutController public function charge(Request $request) { …
0
votes
1 answer

How to configure virtual hosts to work in htdocs directory of Xampp?

I am following a laravel tutorial, where tutor sets up a virtual host to run their app. The app is located in /opt/lampp/htdocs/first-app. My port for running apache is 8000. So if I visit localhost:8000/first-app/public, I can view my laravel app.…
0
votes
1 answer

How add parameter in FormRequest Laravel

I'm doing a login with passport (in API) I'm trying to get the tokens generated by the authentication server. However, I can't add extra parameters to the request which is an instance of FormRequest. On the other hand, if I change my request to an…
diego
  • 408
  • 8
  • 21
0
votes
1 answer

some objects in a laravel collection can not relation with user model

I have got data of my projects in laravel with ... $aProjects = Project::all(); i want to get full name of project creator with... foreach ($aProjects as $key => $project) { $sFullName = $project->user->getFullName(); $project->fullName =…
0
votes
0 answers

Video keeps playing after moving to a new route

I have 2 views A and B, that are loaded in the routes "routeA" and "routeB". In the view A I'm loading a video. When I click on the button that exists in the view A that executes $router.push({ name: 'routeB'}), it loads the view B, but I can still…
Inigo EC
  • 2,178
  • 3
  • 22
  • 31
0
votes
2 answers

Class 'App\Http\Controllers\VarificationEmail' not found laravel_version 6+

I am using Mail::to($user->email)->send( new VarificationEmail($user)); in directory App\Http\Controller and VarificationEmail.php in directory App\Mail\ when submit page then…
pksaidur
  • 39
  • 1
  • 4
0
votes
1 answer

Is it normal practice, that Laravel defines global functions without namespaces?

I'm started to learn Laravel 6. In /vendor/laravel/framework/src/Illuminate/Foundation/helpers.php it have some functions without even namespace! So it's occupy global namespace. Is it normal?
Turako
  • 614
  • 7
  • 11
0
votes
2 answers

Laravel 6 form array validation

I have a form in which a user can add as many contacts as he'd like. But I get stuck on the validation for this. I use the old way of validating forms, using the $request->validate method. My form (part of it that is relevant):
nepp95
  • 131
  • 1
  • 13
0
votes
1 answer

Laravel 6 version using compact

What does Laravel 6 version using a return view(view: 'index', data: compact(varname: 'string')); I was following a tutorial, but the one I downloaded it seems it's different codes on the tutorial and always gets me an error. I downloaded a…