Search code examples
laravellaravel-5laravel-5.4laravel-artisan

jwt.php not visible in config folder of laravel 5.4


I have successfully configured and make everything work perfectly. But i have an issue, i want to change the time to live but in my project "jwt.php" does not appear in the config folder.

If anyone knows the solution kindly guide me; help will be appreciated. Many Thanks!


Solution

  • This is probably because you haven't published vendor files.

    You should run:

    php artisan config:publish tymon/jwt-auth
    

    assuming you use https://github.com/tymondesigns/jwt-auth package to publish configuration file so you will have jwt.php created and then you can update config according to your needs