Questions tagged [laravel-6]

Laravel 6.0 is the current stable and LTS 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:

1845 questions
5
votes
2 answers

When I'm try to use redis on my project laravel 6.x it show this error message

ERROR: Please remove or rename the Redis facade alias in your "app" configuration file in order to avoid collision with the PHP Redis extension I put this code on my cache.php 'default' => env('CACHE_DRIVER', 'redis'), And those code in my…
Tarik Manoar
  • 103
  • 2
  • 10
5
votes
5 answers

How to logout with a GET request in Laravel

I am getting error when i am logout, it's showing me this error..."The GET method is not supported for this route. Supported methods: POST." Please help me to solve this issue.. Here are my code... @if(Auth::check())
  • sumit group3
    • 51
    • 1
    • 5
    5
    votes
    5 answers

    Laravel with App Engine Standard Class 'Facade\Ignition\IgnitionServiceProvider' not found

    This is driving me crazy second day. I'm new to Laravel and trying to get Laravel 6 work on Google App Engine Standard. Tried: This tutorial and other ones, but it still fails to load Laravel index page What I have done: Created new Laravel…
    ProgZi
    • 624
    • 2
    • 10
    • 20
    5
    votes
    2 answers

    'The bootstrap/cache directory must be present and writable' error during laravel 6 testing

    Laravel 6 includes some additional configuration in phpunit.xml:
    Tanmay
    • 2,380
    • 5
    • 34
    • 69
    4
    votes
    6 answers

    how to upgrade laravel 6 to 7

    i am trying to upgrade laravel 6 to 7, i got an error. our requirements could not be resolved to an installable set of packages. Problem 1 - Conclusion: remove laravel/framework v6.0.3 - Conclusion: don't install laravel/framework…
    Haneef Ansari
    • 99
    • 2
    • 8
    4
    votes
    2 answers

    Laravel 6 validation: there is limit in number of rules?

    I am using Laravel 6.13.1. I have the following validation $validator = Validator::make($request->all(), [ 'name' => 'required|max:100', 'email' => 'required|email', 'mobile_number' => 'required', 'date_of_birth' => 'required', …
    Joyal
    • 2,119
    • 2
    • 26
    • 34
    4
    votes
    1 answer

    Accessor that decrypts model value isn't working

    I have a trait that uses accessors and mutators to encrypt model values: trait Encryptable { public function getAttribute($key) { $value = parent::getAttribute($key); if (in_array($key, $this->encryptable)) { …
    Kyle Corbin Hurst
    • 673
    • 1
    • 5
    • 15
    4
    votes
    2 answers

    I cannot install Laravel with Composer (ext-zip extension is missing)

    I tried to install Laravel with Composer on my Debian 9 terminal with composer global require laravel/installer But I get the following errors: Using version ^3.0 for laravel/installer ./composer.json has been created Loading composer repositories…
    Lilian
    • 89
    • 1
    • 7
    4
    votes
    0 answers

    Access Laravel API from a Laravel Nova custom tool

    I have created a new tool within Nova and I have to access my laravel api defined in /routes/api.php not the one in nova-components/component-name/routes/api.php My code within the Vue component looks like this: getCertificateTypes() { …
    iosifv
    • 859
    • 6
    • 21
    4
    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…
    4
    votes
    2 answers

    Where to add parameter to Route: verification.notice {language}/email/verify

    Missing required parameters for [Route: verification.notice] [URI: {language}/email/verify] I added the laravel email verification to my project, after using localization. But now I have the problem that the Route: verification.notice is missing a…
    4
    votes
    3 answers

    PHP Redis extension is installed and enabled in laravel 6 version

    When I am trying To installing redis in larvel 6 version I can not install redis and it extension it show me the error.
    user8099291
    • 209
    • 3
    • 10
    4
    votes
    5 answers

    How to use Font Awesome 5 icons in Laravel 6

    I already installed Fontawesome in my package.json. "devDependencies": { "@fortawesome/fontawesome-free": "^5.11.2" , //etc. }, "dependencies": { "font-awesome": "^4.7.0" } and import it to my app.scss @import…
    gecko
    • 1,081
    • 2
    • 9
    • 25
    4
    votes
    4 answers

    Laravel Passport invalid scope(s) provided exception

    Laravel Passport version 8.0.0 Laravel version: 6.2 I defined scopes of my API using the Passport::tokensCan method in the boot method of AuthServiceProvider.php file: Passport::routes(); Passport::tokensCan([ 'view-posts' => 'View posts', …
    N'Bayramberdiyev
    • 4,947
    • 7
    • 18
    • 39
    4
    votes
    2 answers

    Laravel Relationship Array with integer column

    Category Table Product Table I want to be create relationship with category tables ->id with Product table category_id suggest any idea for this relationship Array with integer column…
    hitesh
    • 193
    • 6