skip to Main Content

Laravel Routing based on Query Params

Is there a possibility to create a routing based on query parameters? For example, an external system is calling the following route: https://example.com/api?Action=GetOrders&Key=abf24b12c3b2a4e4b4dabbdd Dependent on the value of Action, I would like to call different controller methods. How can I…

VIEW QUESTION

Laravel auth()->id() not working in prod server

I have one seperate database for saving logs I have middleware that saves every request with response public function handle($request, Closure $next, $logType) { $response = $next($request); CreateLog::dispatch($request, $response, $logType)->onQueue(config('queue.queues.logging')); return $response; } Everything related to auth progress works after…

VIEW QUESTION

“What can cause ‘Uncaught runtime errors: ERROR [object Object]’ for Jquery, Vue.js, and Node.js?”

I am using vuejs as my frontend,when I run npm run serve,it runs ok,but when I navigate to my browser,the first thing I see is this error Error Uncaught runtime errors: ERROR [object Object] handleError@webpack-internal:///./node_modules/webpack-dev-server/client/overlay.js:252:58 createOverlay/<@webpack-internal:///./node_modules/webpack-dev-server/client/overlay.js:275:18 I have tried deleting…

VIEW QUESTION

how to Laravel eloquent having array

how to type this sql in laravel eloquent 10 $data = array:2 [ 0 => "3" 1 => "5" 2 => "1" ] relations public function followActionFollowStudent() { return $this->hasMany(FollowActionFollowStudent::class, 'follow_student_id', id'); } i need sql as this below select…

VIEW QUESTION
Back To Top
Search