1. Go to this page and download the library: Download meema/laravel-meema 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/ */
meema / laravel-meema example snippets
use Meema\LaravelMeema\Facades\Media;
Media::create('New media name');
Media::get();
// specific uuids
Media::get('11a283ed-a64e-424a-aefc-6aa98971d529', '1556fcb8-693e-4431-8b16-3b2b7bb8fcc7');
Media::search('media-name');
// this will return a Response instance
$media = Media::find('11a283ed-a64e-424a-aefc-6aa98971d529');
// you may chain other methods that 4e-424a-aefc-6aa98971d529');
$media->tags()->get();
$media->tags()->associate(['name' => 'Tag Name']);
$media->tags()->disassociate(['name' => 'Tag Name']);
use Meema\LaravelMeema\Facades\Folder;
Folder::create('New folder name');
Folder::get();
// specific uuids
Folder::get('11a283ed-a64e-424a-aefc-6aa98971d529', '1556fcb8-693e-4431-8b16-3b2b7bb8fcc7');
Folder::search('folder-name');
// this will return a Response instance
$folder = Folder::find('11a283ed-a64e-424a-aefc-6aa98971d529');
// you may chain other methods that
Tag::get();
// specific uuids
Tag::get(1, 2, 3);
// this will return a Response instance
$tag = Tag::find(1);
// you may chain other methods that
Favorite::create(['name' => 'New Favorite Name', 'icon' => 'favorite-icon']);
Favorite::get();
// specific uuids
Favorite::get('11a283ed-a64e-424a-aefc-6aa98971d529', '1556fcb8-693e-4431-8b16-3b2b7bb8fcc7');
// this will return a Response instance
$favorite = $client->favorites()->find(1);
// you may chain other methods that