Category "laravel-blade"

Attempt to read property "degree" on null

i have created a profile where users can add their education fields. when there is no value in the database it throws an error. how can i get rid of this ? Atte

CSS file not imported in laravel blade view

I am trying to import a CSS file into one of my Laravel views but it's not being included for some reason. This is is what I have in my view file: @extends('lay

How can I pass the list to the component variable in Laravel?

How can I pass the list to the component variable? I tried to add elements of a list in @php tags like this , for now,, in the future, I will fetch this list fr

How to get array values using foreach in laravel

I am new to laravel and php. I have this code in one of my controllers: $group_by_precedence = array("true", "false"); And this code in the view: @foreach ($gr

Laravel Blade checkbox not checked

I'm passing variables into the blade from controller. This is my code from controller: $offerConditionsData = Offercondition::where('offerId', $id)->where('

Prevent blank space in pdf pages (DomPdf)

I don't want to leave blank spaces or leave only the minimum possible in pdf. I noticed that the tag is only inserted on the page when all its content fits on t

Comment in .blade.php template

I am new in blade template. How i comment here? PHP i can comment like this <?php // echo $games;?> Laravel Blade {{ $game }}

How to fix Invalid request (Unsupported SSL request)

I'm setting up my laravel application and every time I run php artisan serve, it starts a laravel development serve at localhost:8000. Bu when i open the locaho

Issue with laravel eloquent model property

I'm trying to print {{$day->date}} in a view. Instead of full date YYYY-MM-DD the property only returns year YYYY. Can anyone explain me why it is working li

Netbeans customize laravel blade commands color

I have been working on a Laravel project and was able to implement the code completion from the IDE Helper. What I am trying to find is a way to customize the c

Laravel post contact form giving me error 419

I've been trying to get a contact form to display as /contact when using the form, and after submitting the form. I'm getting Error 419 no matter what I seem to

Laravel Blade html image

My image file path is public/img/stuvi-logo.png and my app.blade.php file path is resources/views/app.blade.php Inside of my app.blade.php file I use {{HTML::im

why is Blade code getting rendered on the page?

I just started learning Laravel, Installed Laravel 7.6.2, and PHP 7.4.4 Without modifying a single line of code in the entire Laravel project, I try to open the

x-bind with forwarded wire:model in a template element

Consider the following, in a blade template: <template x-for="(product, index) in getProducts()" :key="index"> <li class="flex items-center px-1 py