Questions tagged [laravel-blade]

Use this tag for questions about the Blade Template Engine, part of the PHP MVC framework Laravel

Filter by
Sorted by
Tagged with
0 votes
0 answers
44 views

Laravel Livewire Component Not Rendering View Content

I am working on a Laravel project using Livewire and I've encountered an issue where my Livewire component's view is not rendering any content on the page. When navigating to the route associated with ...
Floortje123421's user avatar
0 votes
0 answers
8 views

how do i get rid of laravel 10 route class error, where it says it can't find a class that is there?

I just want to make an href link go to a different page from dashboard. I have an error on my web page when i try to access my cities page through an href link the error: "Target class [App\Http\...
R1ce D1es's user avatar
-1 votes
0 answers
12 views

Detected multiple instances of Livewire running

i start learn Livewire but in my browser console show Detected multiple instances of Livewire running and Detected multiple instances of Alpine running it is safe? my code in Github
KAnggara75's user avatar
0 votes
2 answers
34 views

Use laravel blade components from different folder

For some reason, I put my Laravel blade components inside the App/Core/CoreComponents folder, so now I can't use these components like the old way: <x-Core.CoreComponents.input /> And after ...
khaled amoudi's user avatar
0 votes
2 answers
43 views

How to delete data properly?

This is my delete button <!-- Hapus Data --> <button type="button" class="btn btn-danger" data-bs-toggle="modal" data-bs- target=&...
ZAlIce's user avatar
  • 3
0 votes
0 answers
11 views

DomPDF: Error with '2+' 'term_user' entries while generating certificates

I want to generate certificates even when I have 2 or more data entries. I'm using DomPDF to generate certificates. When the 'term_user' pivot table has a '1' data, there's no error in generating ...
Marvin Pua Lucas's user avatar
0 votes
1 answer
61 views

How to display an array representing a folder structure in Laravel Blade templates?

Let's say I have a PHP array of arrays representing a folder structure that goes like this: array:5 [▼ 0 => array:2 [▼ "size" => "9.8 MiB" "name" => &...
Simón Chasnovsky's user avatar
-1 votes
1 answer
20 views

Barryvdh/laravel-domPDF returning Attempt to read property " " on bool [duplicate]

Im using Laravel 9.52.10 and PHP 8.0.28. i have CRUD that display preaching data can print it. that data only can printed per ID, not all of data preaching. but i have an error: Attempt to read ...
0 votes
0 answers
13 views

Validating input fields in livewire

I'm using Laravel 8 | Livewire 2.5 and need some help trying to get my questionnaire form to validate all input fields when the user clicks the next button and have the validation errors display + ...
Hydengoseek's user avatar
0 votes
1 answer
42 views

Laravel - Blade - <!-- __BLOCK__ --> <!-- __ENDBLOCK__ -->

when I use in Blade @if, @foreach etc. Laravel add extra <!-- _ BLOCK _ --> <!-- _ ENDBLOCK --> lines. How can I get rid of this. This was never happed before. Laravel 10 + Livewire 3 (...
Radoslaw Kordasiewicz's user avatar
0 votes
2 answers
65 views

AJAX in Laravel Blade ignoring div class

I'm very new at AJAX JavaScript, and i got tast for filtering data in Laravel 10 without refresh using AJAX but no luck yet. This is the code for my blade view : <script src="https://code....
Gagas Amukti's user avatar
-1 votes
0 answers
40 views

Not rendering blade assuming controller or routes or view are correct using Laravel [closed]

I'm using Laravel 10 I have a problem in rendering my blade, here is the structure of my blades and controllers; |Http |Controllers |Controller.php |TaskController.php |layouts ...
Two's user avatar
  • 514
0 votes
0 answers
10 views

Queue System using Laravel in Laragon [closed]

How to implement the real-time updating of the queuing number for the client side screen is my problem. I'm using Laravel 8.83.27 with Blade Template. I'm also using HTML, CSS, Bootstrap, and ...
Larz Jhin's user avatar
-2 votes
1 answer
31 views

Pagination is showing Big arrows/ Didn't work properly?

I used simple Laravel pagination command of {{$blogs->links()}} for blog post but showing errors. After research, I put as an argument on the "links" method, a version of Bootstrap which ...
Jayanta Sana's user avatar
0 votes
1 answer
20 views

Display all types of messages sent to View in Laravel

I return to the index Route after various actions in various controller methods in Laravel. In different methods, I send different messages such as "success", "error" and... to the ...
rafig khiyavi's user avatar
0 votes
2 answers
27 views

LARAVEL: How to display data from bootstrap modal?

I'm having problems with displaying data from modal. It works outside the modal but inside modal it only iterates 1 data. @foreach ($addresses->sortByDesc('status') as $address) ...
Sequoia's user avatar
1 vote
1 answer
25 views

Laravel Component Recognized in One file but Not Another

I've solved this issue, But I'm EXTREMELY confused on what's going on here, and would like someone to explain it to me for future reference. So I have a Laravel 10 Project and my first route is a ...
Tyler Stone's user avatar
0 votes
0 answers
17 views

Laravel Blade HTML ENTITIES

From the documentation of Laravel 10: By default, Blade (and the Laravel e function) will double encode HTML entities. If you would like to disable double encoding, call the Blade::...
s17's user avatar
  • 71
0 votes
1 answer
39 views

Unable to retrieve data using livewire and blade in laravel

I am creating a feature for user to submit cases, i could save the case to the database but i am unable to retrieve it from the database. here's the code. 1.manage-case.php component <?php ...
Ng Soo Hao's user avatar
0 votes
0 answers
22 views

Dropzone laravel No data found for resource with given identifier when upload code in server

this is function code store upload small file accept but size from 15 mega this message appear in local this issue not appear only appear in server public function storeMedia(Request $request) { ...
ahmed's user avatar
  • 42
-1 votes
1 answer
32 views

Why am I getting get method not supported error(supported method : post) even though I use post method?

I am trying to build a user and client page with laravel I created a page that can be used to create users now I want to create a page just like that when I click those users but I keep on getting ...
Intr0vert's user avatar
0 votes
0 answers
40 views

Can't Seem To Fetch The Authenticated User In Laravel In My Helper Class

I am a laravel application however i am unable to fetch the logged in user. I happen to log in successfully. The logout functionality works but when i try fetch the authenticated user using auth()->...
James Donohue's user avatar
0 votes
0 answers
39 views

Change in a Balde Template caused a problem in a business Logic in a Controller

Can a Change in UI affect business logic in a controller? well, the answer should be a big NO but here's what made me suspect this fact. I am using an anchor element inside a table cell to delete a ...
Mohammed Abualnasr's user avatar
1 vote
1 answer
72 views

How can I display image from my MySQL database to pdf using Dompdf

After I attempt to display an image from the database in a PDF using DomPDF, it doesn't appear, and the loading speed is slow. My view: <div class="image"> <img src="{{ $...
Marvin Pua Lucas's user avatar
-3 votes
0 answers
53 views

How do I pass URL parameters to a Laravel (10) blade template?

This is probably a stupid question, but I can't seem to find an answer after searching on the Net. What I would like to do is to pass URL parameters to a Laravel blade from a controller, such as ...
fat penguin's user avatar
0 votes
0 answers
49 views

Laravel livewire query string not working in url

I am trying to add a filter functionality by categories in an ecommerce site using laravel livewire query strings but I am not able to understand why it is not working this is the blade file code: <...
Dipesh Paul's user avatar
0 votes
0 answers
8 views

Vue 3 component didn't showing up in my laravel 10 blade

I have problem about showing vue component in blade. I tried using adding x syntax like <x-example-component></x-example-component>, but it give me error message 'Unable to locate a class ...
kkogi's user avatar
  • 1
0 votes
0 answers
50 views

Cannot access public folder via Url - Laravel 10 / Apache

having an issue accessing anything stored in the public folder of my Laravel project (net::ERR_INVALID_HTTP_RESPONSE). To get as basic as possible I tested it on a brand new project, after ...
Luca Tacchino's user avatar
0 votes
1 answer
22 views

How to add response to alert blade template?

in my UserController I have the following line: if (!Gate::check('can:main_page')) { return response(['error' => ['status' => 403, 'message' => 'You can't access this page'...
Ahmed Egeh's user avatar
-1 votes
1 answer
28 views

Laravel Blade Check If User Not Have a Permission Inside Array of Permission

Can you guys help me? I just want to know how to check if the user do not have a permission from an array of permission on laravel blade. I think is the inverse of @canany Maybe the illustration in my ...
Satrio Akbar Sudigdo's user avatar
2 votes
1 answer
24 views

Laravel checkbox value update

I am new to Laravel and I wanna do a simple checkbox exercise. I wanna input approved's default value as 1. If I click the checkbox, the value is set to 2. <input type="hidden" name="...
RA.IBOY's user avatar
  • 87
0 votes
1 answer
31 views

Show data in "bootstrap-table", from the data received from the controller

From the controller in Laravel I send the data to the view in this way public static function index(): Factory|View { $products = Products::where('visible',true)->get(); return ...
ilernet's user avatar
  • 196
0 votes
1 answer
28 views

Laravel 10x: How to access env variable inside raw HTML? [duplicate]

I have a blade page that shows a HTML content that comes from my Database: {!! $htmlContent !!} This code render the HTML very well. But inside that variable, I'm using a blade code like this: <a ...
Sudo Sur's user avatar
  • 385
0 votes
1 answer
61 views

How to call init function of Dropzone after every time I click a button using jQuery?

I have a list of similar <div> elements created with a for loop. For each of these <div> elements, I have a button to edit information. Every time this edit button is clicked, a pop-up ...
Negar Javadzadeh's user avatar
0 votes
1 answer
39 views

Attaching field value to button data attributes

I have a several fieldsets in blade, each fieldset has the same input and select fields and a save button <div class="unit_box"> <input class="form-control {{ $errors->has('...
Jessica Kimble's user avatar
1 vote
2 answers
33 views

laravel how to add element to array in the blade template

I wanna add elements to the array in laravel blade template. here is my script: <script> selected_arr = []; </script> I wanna get an array like [1,2,3], I tried to use array_push, the ...
RA.IBOY's user avatar
  • 87
1 vote
1 answer
53 views

Calling controller function redirects to a blank page

I have a several fieldsets in my view, each fieldset has a submit button <button class="next action-button" type="submit" name="next" data-gotostep="3">(...
Jessica Kimble's user avatar
-2 votes
0 answers
69 views

How to generate Dompdf from Blade view while its is generating but pages are not breaking properly

I've generated an invoice using DomPDF, and it's generating the pdf invoice, but if the content is bigger it's not breaking the page properly. Here is the code and screenshots I'll share. this is the ...
Salman Khan Sohoo's user avatar
0 votes
1 answer
20 views

Retrieve array from database and show it as a list, php laravel

related_members Table ID related_id 1 ["4","5"] 2 ["1","3"] I have a db like this, and I would like to retrieve that related_id in to a list, in a laravel ...
Johnny Kham's user avatar
-1 votes
0 answers
31 views

Uncaught ReferenceError: Chart is not defined Laravel with vite

I'm using laravel 10-livewire 3 with vite, but it seems the Chart js can't be loaded properly app.blade.php (layout) : <html lang="{{ str_replace('_', '-', app()->getLocale()) }}" data-...
owf's user avatar
  • 259
0 votes
2 answers
28 views

How to confirm before deleting in Laravel Route:resource

In Laravel using Route::resource, the method should be "DELETE" instead of "GET" to delete a row/record so I have to use Form like this. <form action="{{ route('category....
Khalil's user avatar
  • 195
0 votes
0 answers
34 views

Not Reaching Controller - Laravel

iam trying to insert data to database but button is not working it is not inserting the data but it redirect to laravel welcome page . this is blade <div class="col-12"> <...
Salem's user avatar
  • 87
1 vote
1 answer
22 views

javascript - how can i get the date and time from database to blade

here the done.blade.php : @extends('layout.app') @section('title', 'Done Data') @section('content') <div class="card shadow"> <div class="card-header"> &...
zapp02's user avatar
  • 13
0 votes
1 answer
48 views

How to access a view from a laravel package

I'm working on a custom package to manage the licensing of my team projects, the problem I'm facing right now is to access the LicenseExpired view through the router, everything else works fine. Here ...
Omar Lamin's user avatar
-1 votes
0 answers
49 views

In blade laravel convert string to int

I notice strage situation: in my blade (for simple) i have: ... print_r($data[0])."<br>"; print_r("####".$data[0]->project_id); ... but on page i get App\Models\...
Jaqb's user avatar
  • 1
0 votes
0 answers
49 views

How to inject `$attributes` value to anonymous blade component from controller

Suppose I have the following anonymous blade component called badge: @props(['text']) <span {{ $attributes->merge(['class' => 'text-bold']) }}> {{ $text?? '-' }} </span> If I ...
rifqy abdl's user avatar
0 votes
0 answers
77 views

Laravel Blade with Tailwind and Alpine: Tidiest way to make a multiple image file upload

After a lot of work, I've could properly find a way to make a multiple photo upload with just an only <input type="file" multiple...> within a form. I'm also obtaining a nice preview, ...
Leandro Caplan's user avatar
0 votes
2 answers
36 views

All post request in laravel is saying 419 session expired

the thing is that the project is working before.. then all of sudden i started seeing 419 on all my post request and i have @csrf on all my forms too <form method="POST&...
Gabriel Dev's user avatar
0 votes
0 answers
26 views

i want to fetch a data based on the previous field data i inserted in laravel

when i click on the dropdwon menu of fixtures i get list of fixtures then i choose a fixture then on the next field after I select that there is a team id field in that field i want to choose between ...
Dave Molla's user avatar
0 votes
1 answer
16 views

<form> sending null to controller when the inputs are inside a component

im working in laravel and i got a problem that i dont understand, i have this component that uses recursions to build a whole form from a json stored in a table: @foreach($data as $index => $field)...
Evinn's user avatar
  • 33

1
2 3 4 5
145