show some view from laravel method [closed]

You were trying to “hop” over question relation to get items. So just pick question_id of one “unanswered answer” and then get question using with(‘items’). Also it’s unclear how You get $tester, $testerAnswers, $user. So below are ideas how to fix Your issues: Action: public function showQuestion($tester, $testerAnswers, $user) { $testerAnswerNum = $testerAnswers->count(); $questionIdsAnswered = … Read more

How to fetch data from multiple table according to id by using query builder in laravel

You probably want to fetch data according to id that you have. Of course that other tables need to have foreign keys of that table> Here is laravel documentation for joins: https://laravel.com/docs/5.8/queries#joins and here is example code from docs: $users = DB::table(‘users’) ->join(‘contacts’, ‘users.id’, ‘=’, ‘contacts.user_id’) ->join(‘orders’, ‘users.id’, ‘=’, ‘orders.user_id’) ->select(‘users.*’, ‘contacts.phone’, ‘orders.price’) ->get();

how to convert query php to laravel framework

you can use carbon to help you building your query: $beforeThirtyDay = Carbon::now()->subDays(30); DB::table(‘dbx_a’)->select(‘*’)->whereBetween(‘date’, array(Carbon::now(), $beforeThirtyDay)) ->where(‘name’, ‘=’, ‘MANAGEMENT’)->orderByDesc(‘date’)->get();

Browser Version and laravel Version

Laravel is written in PHP. And PHP is a server-side language. Laravel doesn’t get executed in the browser. They do have a set of default css/javascript packages that are used. You can look them up and take a look at their browser support. Laravel tends to only choose packages that are stable and have a … Read more

Trying to get property of non-object error on laravel 5.4

Welcome to StackOverflow, yobab77! There’s a wonderful help article on how to ask questions here, that may help you get better assistance in the future. ErrorException Trying to get property of non-object (View: C:\xampp\htdocs\bgcbus\resources\views\usercrud\sendView.blade.php) This error indicates that the bug is coming from your sendView.blade.php view file, which you’ve stated has the following content: TO … Read more