skip to Main Content

"Attempt to read property "titulo" on string" Laravel

No matter what I do this error keeps popping up, I´ve searched for a solution but Im too stupid to comprehend what is going on, please help me preguntas.blade.php @extends('app') @section('title', 'Pregunta:'.$nombrePregunta->titulo) @section('description', $nombrePregunta->categorias->nombre) @section('content') <div class="leading-loose max-w-4xl mb-4"> {{$nombrePregunta->body}}…

VIEW QUESTION

Laravel Blade does not load if ajax is added

When I add the following ajax to my laravel blade file the page stops rendering. If ajax part is removed the page renders perfectly fine <input type="text" name="voucher_no" id="voucher_no" class="form-control"> <input type="text" name="year" id="year" value="{{ date('Y') }}"> <button type="button" id="convertFinal"…

VIEW QUESTION

Laravel – Nested loop: interval loop brings results for the first iteration of the main loop

I am writing a laravel code in which I need a nested loop in the blade. Here is my controller public function show(string $id) { $transaction = Transaction::findOrFail($id); $subject_ids = DB::connection('transfer') ->table('subjects') ->join('transactions_subjects', 'transactions_subjects.subject_id', '=', 'subjects.id') ->where('transactions_subjects.transaction_id', '=', $transaction->id) ->distinct()…

VIEW QUESTION
Back To Top
Search