Support the ongoing development of →
posted 9 years ago
Last updated 2 years ago.

For your own libraries (functions and classes) you can create a Libs directory (or any name you see fit) under app directory. Then put your functions and classes in files under this directory. For example AuthHelper.php file. When you want to use that file add this line to AuthController.php:

use App\Libs\AuthHelper;

Then you can use it like this:

AuthHelper::setReminderFlash($case, $email);

In short, you are free to create your own directories and libraries in the framework if you need.


Sign in to participate in this thread!


Your banner here too?

Domcsore domcsore Joined 23 Apr 2015


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.