Questions tagged [laravel-5.7]

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

Laravel 5.7 is the previous stable version of Laravel 5. It was released on September 4, 2018.

What is new:

  • Email Verification
  • Guest User Gates / Policies
  • Symfony Dump Server
  • Notification Localization
  • Console Testing
  • URL Generator & Callable Syntax
  • Paginator Links
  • Filesystem Read / Write Streams

Resources:

1390 questions
5
votes
3 answers

Laravel 5.7 How to Log 404 With URL

I want to log 404 errors in Laravel 5.7, but I don't understand how to turn this on. Additional to logging 404 errors, I'd like to log the URL that was requested. Other errors are logged…
eskimo
  • 2,421
  • 5
  • 45
  • 81
5
votes
2 answers

Laravel Notification Want to use view html in notification blade template

I'm using Laravel version 5.7.20 to build a custom markdown template. The template is copied from /resources/views/vendor/notifications/email.blade.php which is generated after issuing the command php artisan vendor:publish…
Shiro
  • 7,344
  • 8
  • 46
  • 80
5
votes
2 answers

Laravel 5.7: Custom blade template for Maintenance Mode but not 503.blade.php

Every time php artisan down is turned on, Laravel displays 503 page. OK. I can customise it by creating new file called 503.blade.php inside resources/views/errors. The point is that I don't consider Maintenance Mode as error at any point despite of…
Matt Komarnicki
  • 5,198
  • 7
  • 40
  • 92
5
votes
4 answers

Laravel 5.7 Auth::loginUsingId() not working after CSRF token generated

I am trying to auto-login user on step-2 of registration steps. After successful insert into db i am using Auth::loginUsingId($user_id) to auto-login user using ajax. I am always submitting CSRF token on each steps. Now the problem is after…
Mahesh Singh Chouhan
  • 2,558
  • 1
  • 16
  • 26
5
votes
3 answers

how to switch language in laravel 5.7

I'm new to the this forum and this is my first question. I am developing an laravel application.so that application default language is English. I want to change this in to Chinese. My requirement is main language is Chinese and other language is…
5
votes
2 answers

separate AngularJS controller files in Laravel&Angular Project

I try this solution https://stackoverflow.com/a/20087682/9246297 https://stackoverflow.com/a/34729515/9246297 and then I got this error GET http://localhost:8000/js/TaskController.js net::ERR_ABORTED 404 (Not Found) Then I check this…
Nasser Ali Karimi
  • 4,462
  • 6
  • 34
  • 77
5
votes
2 answers

Yajra DataTable Is Not Installing on Laravel 5.7.*

I am facing problem while installing Yajra Datatable by using this Command " composer require yajra/laravel-datatables:^1.0 "on Powershell and I got errors. I have Uninstall Wampp and installed Xampp but the problem still exists. Please Help me out…
Adnan Ali
  • 83
  • 1
  • 5
5
votes
8 answers

Laravel 5.7 email verification throws 403

I implemented email verification in a Laravel 5.7 project I'm working on. I get the email, but whenever I click on the confirm button or even the url provided in the email, I get a 403 forbidden error. I have searched for several solutions, but…
Ehi
  • 168
  • 1
  • 2
  • 12
5
votes
1 answer

Laravel 5.7 & Font Awesome

I followed this particular answer to install Font Awesome in a Laravel 5.7 instance running on a LAMP application stack. npm run
russell
  • 83
  • 6
5
votes
6 answers

Validate array of inputs in form in Laravel 5.7

My form has the same input field multiple times. My form field is as follows: And request contains ($request['items'): array:1 [▼ "items" =>…
Dilani
  • 533
  • 1
  • 6
  • 22
4
votes
1 answer

Laravel Custom FormRequest in PHPUnit env

Okay so, I've tried searching for a while now for solutions on how and why this is happening, here it goes. On production environment, this chunk of code works just fine. public function store(Add $request) { $data = $request->validated(); …
abr
  • 2,071
  • 22
  • 38
4
votes
3 answers

PhpDocumentor for Laravel 5.7/6.x

This might be a very newbie question but, how exactly do you use phpDocumentor to generate your docs through Laravel? In my Laravel project there's no phpdoc in the vendor/bin directory, and trying to install phpDocumentor via composer fails (as…
Narc0t1CYM
  • 499
  • 6
  • 25
4
votes
1 answer

Response to CORS preflight OPTIONS request is 500 Internal Server Error in Laravel API

I am working on a Laravel and Angular project. Project is running well in another Computer but I am getting below error in my Laptop. I used this package. I tried several ways but could not find any solution. Cross-Origin Request Blocked: The Same…
abu abu
  • 6,599
  • 19
  • 74
  • 131
4
votes
1 answer

Laravel-5.7 : How to view data in dataset chart in Laravel

I want to display data from the controller and throw it in the view as a dataset, but I have trouble how to write a loop on scriptjava. This is the code that I have tried, and still fails This my controller : laravel $query = …
delfin
  • 41
  • 3
4
votes
3 answers

Laravel: Get ID on a FormRequest Rule

I created a rule to check if email already exist only if the field was changed. $rules = [ 'user-name' => 'required', 'user-email' => [ 'required', 'email', Rule::unique('users', 'email')->ignore(ID) …
marcelo2605
  • 2,734
  • 4
  • 29
  • 55