Medium
How to access this config in Laravel ?
< ?php
// config/app.php
return [
‘name’ => ‘My project name’
];
Edit
0
Community Evaluations
Obsolete
Jérémy Leyrissoux28/07/2024
`config()->get(‘app.name’); ` Cette méthode n'est pas renseigné dans la documentation officielle de Laravel.
Dragon parfait
31/07/2024
Elle n'était pas acceptée comme une bonne réponse avant, mais un contributeur l'a ajoutée parce qu'elle fonctionne effectivement. https://welovedevs.com/fr/app/test-question/-NaLWagUR3gpuu2ssnJX/0a487a2f-7b13-4d9a-af48-742b3cf6e09c
2
If I'm using Laravel Octane, I should pay particular attention to the static arrays contained within my models, which will not be reset between requests.19
What is the purpose of the Laravel Sanctum tool?3
What methods are used in migration files in Laravel?2
Which folder(s) below are present by default at the root of a new Laravel project?5
How to manage an email verification system in a Laravel project?7
List all routes of a Laravel project2
What are the functions included in Laravel to facilitate processing on strings, arrays, URLs, or other elements called?