change functionality of Emojis List to async load from backend

This commit is contained in:
Milos Holba
2021-02-10 19:45:59 +01:00
parent 6c3630085e
commit d65c27091c
7 changed files with 130 additions and 99 deletions

View File

@@ -246,4 +246,17 @@ class AppFunctionsController extends Controller
Artisan::call('config:clear');
Artisan::call('config:cache');
}
/**
* Get Emojis List from the server
*
*
* @return $emojisList
*/
public function get_emojis_list()
{
$emojisList = json_decode(file_get_contents(base_path('public\assets\emojisList.json'), true));
return collect([$emojisList]);
}
}