The work is almost done, now you have to make sure your class appears in
vendor/composer/autoload_classmap.php
Then you just need to use it anywhere:
class Post extends Eloquent {
public function doThing()
{
$instance = new MyClass;
}
}
If you are somehow using namespaces, you have to use them in the top of your class:
use MyClass;
use App\Classes\MyOtherClass;
class Whatever {
public function MyMethod()
{
$instance = new MyClass();
$other = new MyOtherClass();
var_dump($instance);
}
}