diff --git a/app/Http/Controllers/ProductoController.php b/app/Http/Controllers/ProductoController.php index 981861d..c7577d6 100644 --- a/app/Http/Controllers/ProductoController.php +++ b/app/Http/Controllers/ProductoController.php @@ -13,7 +13,7 @@ class ProductoController extends Controller */ public function __construct() { - $this->middleware('auth'); + $this->middleware(['auth','subpedido']); } /** diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index 8fdf11b..0ea5972 100644 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -63,6 +63,7 @@ class Kernel extends HttpKernel 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, + 'subpedido' => \App\Http\Middleware\Subpedido::class, 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, ]; diff --git a/app/Http/Middleware/Subpedido.php b/app/Http/Middleware/Subpedido.php new file mode 100644 index 0000000..3b64cdd --- /dev/null +++ b/app/Http/Middleware/Subpedido.php @@ -0,0 +1,23 @@ +route('subpedidos.create'); + } + return $next($request); + } +} diff --git a/public/assets/.directory b/public/assets/.directory new file mode 100644 index 0000000..628a120 --- /dev/null +++ b/public/assets/.directory @@ -0,0 +1,6 @@ +[Dolphin] +HeaderColumnWidths=641,72,95,143 +Timestamp=2021,7,28,19,15,55.598 +Version=4 +ViewMode=1 +VisibleRoles=Details_text,Details_type,Details_size,Details_modificationtime,CustomizedDetails diff --git a/public/assets/logoMPS.png b/public/assets/logoMPS.png new file mode 100644 index 0000000..8cd8070 Binary files /dev/null and b/public/assets/logoMPS.png differ diff --git a/public/js/app.js b/public/js/app.js new file mode 100644 index 0000000..a91dc0a --- /dev/null +++ b/public/js/app.js @@ -0,0 +1,48 @@ +window.Event = new Vue(); + +Vue.component('nav-bar', { + template: ` + `, + data() { + return { + isActive: false + } + }, + mounted() { + console.log("ready"); + }, + methods: { + toggleState() { + this.isActive = !this.isActive; + } + } +}); + +new Vue({ + el: '#app' +}); \ No newline at end of file diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index a911b7b..ff04508 100644 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -3,7 +3,7 @@
-