Welcome Guest, Not a member yet? Register   Sign In
How to create a new library and use it with controller?
#3

In your controller, use
Code:
use App\Libraries\ExampleLibrary;
above the class
and then you can instantiate your library class in a method with
Code:
$exampleLibrary = new ExampleLibrary();
Reply


Messages In This Thread
RE: How to create a new library and use it with controller? - by rich8374 - 12-23-2021, 10:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB