Questions tagged [laravel-5.8]

Laravel 5.8 is the previous stable version of the open-source PHP web framework created by Taylor Otwell. It was released on February 26, 2019. Use it in addition to the [laravel-5] tag if your question is specific to Laravel 5.8. Use the [laravel] tag for general Laravel related questions.

Laravel 5.8 is the previous stable version of the open-source PHP web framework created by Taylor Otwell. It was released on February 26, 2019.

What is new:

  • Eloquent HasOneThrough Relationship
  • Auto-Discovery Of Model Policies
  • PSR-16 Cache Compliance
  • Multiple Broadcast Authentication Guards
  • Token Guard Token Hashing
  • Improved Email Validation
  • Default Scheduler Timezone
  • Intermediate Table / Pivot Model Events
  • Artisan Call Improvements
  • Mock / Spy Testing Helper Methods
  • Eloquent Resource Key Preservation
  • Higher Order orWhere Eloquent Method
  • Artisan Serve Improvements
  • Blade File Mapping
  • DynamoDB Cache / Session Drivers
  • Carbon 2.0 Support
  • Pheanstalk 4.0 Support

Resources:

1845 questions
5
votes
2 answers

SSH into dynamic remote server and run a command - Laravel 5.8

I'm using L 5.8 and I have a form with 3 inputs Right now, I can SSH into a specific server with this package laravelcollective/remote": "~5.8. I required to pre configured IP, UN, PW in the config/remote.php like so : 'connections' => [ …
code-8
  • 54,650
  • 106
  • 352
  • 604
5
votes
0 answers

Real-time progress of queued jobs laravel at the front end

I am working on Laravel 5.8, and I have a button that starts queue jobs in the database, sending thousands of emails immediately. I want to monitor the progress of the queue on the front-end using a status or progress bar in real-time. I am…
5
votes
4 answers

How to install Laravel 5.8

$ composer create-project --prefer-dist laravel/laravel="5.8.*" larastart it's not working and I tried some other ways too but not worked for me This is the error I am getting: Content-Length mismatch, received 188377 bytes out of the expected…
5
votes
2 answers

Connection Firebase Firestore to laravel

I have installed laravel 5.8 and firebase project with firestore database. "name": "laravel/framework", "version": "v5.8.36", Firestore database connected to android app. App fetches data good from Firestore. Than I want to create admin panel…
Xose
  • 85
  • 2
  • 9
5
votes
2 answers

redirect is not working for custom middleware

I am using Laravel project version 5.8. I have used two middleware Admin and Author. I have created both AdminMiddleware and AuthorMiddlware. I registered both in Kernel.php. I changed RedirectIfAuthenticated, loginController for custom…
5
votes
2 answers

Error when trying to send a notification to my slack with Laravel 5.8

I try to send a simple slack notification on my channel to know when a customer buy something or register but i've got an error and i can't find any solution on the web. That's my notification SlackNotification.php :
Maxime Brunet
  • 143
  • 1
  • 9
5
votes
4 answers

In Router.php line 366: Argument 1 passed to Illuminate\Routing\Router::group() must be of the type array,

I have update Laravel from v5.7 to v5.8 and now my application doesn't run. I updated it because of this issue: composer require rebing/graphql-laravel fails I solved the packages incompatibility but now Laravel crashes: $ php artisan serve In…
5
votes
3 answers

Email validation not working properly in laravel

I want to validate email. Suppose if a customer give an email address like "demo@gmail" it gives an validation error. Email should be "demo@gmail.com".What is the code to do this validation.I do it but not working properly.My code in…
Foisal Hossain
  • 129
  • 1
  • 8
5
votes
2 answers

validation inputs throw a The GET method is not supported for this route. Supported methods: POST. error

I'm trying to validate input field but, when I use the validation rules it throw a: The GET method is not supported for this route. Supported methods: POST. error. This is my controller public function delivery(Request $request) { …
hala
  • 161
  • 2
  • 13
5
votes
1 answer

Slow whereHas() after upgrade from Laravel 5.1 to Laravel 5.8

I switched an app from Laravel 5.1 to Laravel 5.8 by setting up a fresh 5.8 project and copying over the files, making some adjustments here and there. The issue is that the queries with whereHas have become extremely slow. Here is an example…
Džuris
  • 2,115
  • 3
  • 27
  • 55
5
votes
1 answer

Laravel show required error message when submitting the form with image and data both

About I am submitting the image with plain text using vue.js and Laravel 5.8. Error Details When I submit the data using axios, it gives validation error message that product name is required. I am submitting both name and image. Everything works…
Pankaj
  • 9,749
  • 32
  • 139
  • 283
5
votes
1 answer

Illegal offset type in isset or empty Laravel

I use the following query to get Project Id and Id of Particular Table in Laravel. $projectlist = Projects::Where('customer',$request->input('client_name'))->pluck(DB::raw("CONCAT('project_prefix','project_nos') AS projectid"),"id"); I got…
Karthik
  • 5,589
  • 18
  • 46
  • 78
5
votes
1 answer

Laravel 5.8 Custom Form Request not working as intended?

I created a custom form request named ClientStoreRequest with the following code:
Andy Holmes
  • 7,817
  • 10
  • 50
  • 83
5
votes
2 answers

How to update null in mySQL using Laravel

I am trying on an api of insert and update, and has problems on null. Already searched almost all questions and solutions but still got the problem, please help me. table DDL: CREATE TABLE `brand` ( `brand_id` int(11) NOT NULL AUTO_INCREMENT, …
shane
  • 51
  • 4
5
votes
3 answers

laravel socialite not working on live server, only works on local machine

I have recently moved my application into a live server. The problem is laravel socialite stopped working, below is the explanation: I click on google login and after choosing email, on callback this happens: InvalidStateException on Abstract.php…