change base_path to public_path in get_emojis_list function

This commit is contained in:
Milos Holba
2021-02-11 16:44:16 +01:00
parent d65c27091c
commit 7be02edead
2 changed files with 2 additions and 18 deletions

View File

@@ -250,12 +250,11 @@ class AppFunctionsController extends Controller
/**
* 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));
$emojisList = json_decode(file_get_contents(public_path('assets/emojisList.json'), true));
return collect([$emojisList]);
}