-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from tomatophp/develop
update chat to be 20 per page
- Loading branch information
Showing
9 changed files
with
2,237 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace Modules\CircleXO\App\Http\Middleware; | ||
|
||
use Closure; | ||
use Illuminate\Http\Request; | ||
|
||
class LangMiddleware | ||
{ | ||
/** | ||
* Handle an incoming request. | ||
*/ | ||
public function handle(Request $request, Closure $next) | ||
{ | ||
if(auth('accounts')->user()){ | ||
if(auth('accounts')->user()->meta('lang')){ | ||
app()->setLocale(auth('accounts')->user()->meta('lang')); | ||
} | ||
} | ||
|
||
return $next($request); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<?php | ||
|
||
use TomatoPHP\TomatoMenus\Services\MenuRenderBase; | ||
|
||
return [ | ||
/** | ||
* you can add a new Menus Class that generated by tomato:menu MENU_NAME here to register | ||
* the menu to the tomato-admin menu system | ||
*/ | ||
"menus" => [ | ||
// | ||
], | ||
|
||
/** | ||
* you can provide your own menu class to render the menu | ||
* the class must return a full rendered menu. | ||
*/ | ||
"menu_provider" => null, | ||
|
||
/** | ||
* if you need to change the main menu with your own menu file | ||
*/ | ||
"menu_file" => null, | ||
|
||
/** | ||
* if you need to change the route prefix | ||
*/ | ||
"route_perfix" => "admin", | ||
|
||
/** | ||
* if you need to disable the register route | ||
*/ | ||
"register" => true, | ||
|
||
/** | ||
* if you need to change the route middlewares | ||
*/ | ||
"route_middlewares" => [ | ||
"web" | ||
], | ||
|
||
/** | ||
* if you need to change the route path for global search | ||
*/ | ||
"global_search_route" => null, | ||
|
||
"langs" => [ | ||
[ | ||
"key" => "ar", | ||
"label" => [ | ||
"ar" => "العربية", | ||
"en" => "Arabic", | ||
"gr" => "Arabische", | ||
], | ||
"flag" => "🇪🇬" | ||
], | ||
[ | ||
"key" => "en", | ||
"label" => [ | ||
"ar" => "الانجليزية", | ||
"en" => "English", | ||
"gr" => "Englische", | ||
], | ||
"flag" => "🇺🇸" | ||
], | ||
[ | ||
"key" => "gr", | ||
"label" => [ | ||
"ar" => "الالمانية", | ||
"en" => "Germany", | ||
"gr" => "Deutsche", | ||
], | ||
"flag" => "🇩🇪" | ||
] | ||
] | ||
]; |
Oops, something went wrong.