Ich Ich, gros commit

This commit is contained in:
bglacial
2018-10-08 22:31:58 +02:00
parent ecded0947f
commit b11b2befd7
49 changed files with 37276 additions and 11977 deletions

View File

@ -3,6 +3,7 @@
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Blade;
class AppServiceProvider extends ServiceProvider
{
@ -13,7 +14,9 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot()
{
//
Blade::if('admin', function () {
return auth()->check() && auth()->user()->admin;
});
}
/**