Hi, i created new libraries folder and inside linkedin class.
//laravel/app/libraries/linkedin/linkedin.php
<?php namespace Linkedin; class Linkedin{ public function test() { $user = new UserModel(); } } UserModel class is in laravel/app/models. How can I use UserModel class in linkedin class? Class Here it the error 'Linkedin\UserModel' not found Probably I should use "use" ?Hi valuk82
writing
use UserModel;
before your class will work.
Regards Alex
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community