select * from orders where status="in process" and user_id="{$User.id}";
select * from orders where id="{$User.current_order}";
$view->with(...)
?) public function boot()
{
View::composer('*', ThemeComposer::class);
}
public function compose(ViewView $view)
{
if (Auth::check()) {
$json = json_decode(Redis::get(auth()->user()->id));
switch ($json->theme) {
case 'light':
View::share('_style', 'light.css');
break;
case 'dark':
View::share('_style', 'dark.css');
break;
default:
View::share('_style', 'light.css');
break;
}
}
}
<link rel="stylesheet" href="/themes/{{ $_style }}">
<data> do onma is ones_959. od do enbiis is esqu_885. od do\nxeesla_730 is ansobi_220. od do dibe_963 is enle. od </data>