Belajar Laravel Lebih Dari Sekedar Fundamental

Abdi Basariyadi

Joined 15 March, 2021
We don't know much about them, but we're sure he is great someone.
3
Comments
1K
Total experiences
0
Lesson completed

Last Activity

Cash In Out dengan Laravel Api dan Vue 3Mari kita login dari vue10:21

Abdi Basariyadi

xhr.js?b50d:177 GET http://localhost:8080/sanctum/csrf-cookie 404 (Not Found) dispatchXhrRequest @ xhr.js?b50d:177 xhrAdapter @ xhr.js?b50d:13 dispatchRequest @ dispatchRequest.js?5270:52 Promise.then (async) request @ Axios.js?0a06:61 Axios. @ Axios.js?0a06:76 wrap @ bind.js?1d2b:9 _callee$ @ Login.vue?da5d:67 tryCatch @ runtime.js?96cf:63 invoke @ runtime.js?96cf:293 eval @ runtime.js?96cf:118 asyncGeneratorStep @ asyncToGenerator.js?1da1:3 _next @ asyncToGenerator.js?1da1:25 eval @ asyncToGenerator.js?1da1:32 eval @ asyncToGenerator.js?1da1:21 login @ Login.vue?da5d:67 eval @ Login.vue?da5d:12 eval @ runtime-dom.esm-bundler.js?830f:1147 callWithErrorHandling @ runtime-core.esm-bundler.js?5c40:154 callWithAsyncErrorHandling @ runtime-core.esm-bundler.js?5c40:163 invoker @ runtime-dom.esm-bundler.js?830f:333 runtime-core.esm-bundler.js?5c40:38 [Vue warn]: Unhandled error during execution of native event handler at <Anonymous onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< Proxy {…} > > at <RouterView> at <App> warn @ runtime-core.esm-bundler.js?5c40:38 logError @ runtime-core.esm-bundler.js?5c40:211 handleError @ runtime-core.esm-bundler.js?5c40:203 eval @ runtime-core.esm-bundler.js?5c40:166 Promise.catch (async) callWithAsyncErrorHandling @ runtime-core.esm-bundler.js?5c40:165 invoker @ runtime-dom.esm-bundler.js?830f:333 createError.js?2d83:16 Uncaught (in promise) Error: Request failed with status code 404 at createError (createError.js?2d83:16) at settle (settle.js?467f:17) at XMLHttpRequest.handleLoad (xhr.js?b50d:62) createError @ createError.js?2d83:16 settle @ settle.js?467f:17 handleLoad @ xhr.js?b50d:62 Promise.catch (async) callWithAsyncErrorHandling @ runtime-core.esm-bundler.js?5c40:165 invoker @ runtime-dom.esm-bundler.js?830f:333

ini error kenapa ya mas?

Role & Permission with Admin PanelMari kita tampilkan menunya secara dinamis10:19

Abdi Basariyadi

Bagaimana jika user langsung ke url /dashboard dan kita redirect dia ke 403 mas? saya mengalami error ketika langsung mengetikan url /dashboard tanpa login?

Error Call to a member function hasAnyRole() on null

HasRoleMiddleware.php class HasRoleMiddleware { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle(Request $request, Closure $next) { $roles = Role::get(); if ($request->user()->hasAnyRole($roles)) { return $next($request); } else { abort(403); } } }

Parsinta is a online learning platform intended for web developers.Through series-series such as Laravel, Reactjs, Vuejs, InertiaJs, HTML, Bootstrap, Tailwind CSS, and more.

Parsinta is a Trademark of Irsyad A. Panjaitan. Copyright © 2016 - 2022