1. Go to this page and download the library: Download caherrera/udemy-laravel library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
caherrera / udemy-laravel example snippets
'Udemy' => Udemy\Laravel\Facades\Udemy::class,
use Udemy\Laravel\Facades\Udemy;
// you can alias this in config/app.php if you like
Udemy::domains()->all();
// we're done here - how easy was that, it just works!
use Udemy\Laravel\Model\UserActivity;
class Foo
{
protected $link;
public function __construct()
{
$this->user_activity = new UserActivity();
}
public function all()
{
return $this->user_activity->all();
}
}
bash
$ php artisan vendor:publish
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.