Support the ongoing development of Laravel.io →

1,485 Threads

How do I do a conditional check of a value from an array to decide the layout?

How do I do a conditional check of a value from an array to decide the layout? This is the error I g...

0 Likes
4 Replies
posted 10 years ago

Javascript variable within blade statements

Hello, Is it possible to use javascript variables in blade statements ? I have a blade template fill...

0 Likes
2 Replies
Solved

Include content in blade from controller

Hi, Could I include a result from a function of controller o route inside of a part of view blade wi...

0 Likes
4 Replies
Solved
posted 10 years ago

implement autoloaded helper function into a link with various content

Hi everybody, I am starting with Laravel and I ran into a problem with generating a link. The link I...

0 Likes
0 Replies

Api for managing html/json/pjax

Hey everyone. I've been building one-page apps a long time now (in the grand scheme of things), for...

0 Likes
0 Replies

ErrorException (E_UNKNOWN) Declaration of ....

Hello, I have this error on my deployed version it was working, I wanted to use simple sms so I inst...

0 Likes
2 Replies

Adding class to {{Form::select

Currently I have this code: {{Form::select('schoolId', $schools)}} But I need to add a class.. I tri...

0 Likes
1 Replies
Solved

Compiling Laravel View in Controller?

I'm currently using Handlebars.js to compile views with ajax data. The issue is that I can't use Lar...

0 Likes
1 Replies

Redisplay view based on dropdown selected value

In my first Laravel application, I want my Tunes view to display a table of the titles of songs base...

0 Likes
1 Replies
Solved
posted 10 years ago

Adding class to img helper?

I have this: {{ HTML::image('css/img/logo.png');}} But I need to add a class to this image. Tried t...

0 Likes
1 Replies
Solved

Cleaning up controller and views

My controller and view code is getting messy. This post is more of a general question as to what oth...

0 Likes
3 Replies

Create helper to display active or inactive for boolean value

Hi, Rather than use an if statement in my view, is there a way I can display the text using a helper...

0 Likes
0 Replies

Custom blocks with Blade

Is it possible to use the Blade::extend functionality to create custom blocks? For example, I'd like...

0 Likes
0 Replies

Cascading/Dependent dropdown list

Hi All, I'm a relative newb to Laravel with not much understanding of javascript. I'm trying to get...

0 Likes
5 Replies

Issues with data types on Windows and Mac

I am working in a team with 3 members on a project in Laravel. I'm running Windows on my laptop with...

0 Likes
1 Replies

AJAX and blade

So i am a total newbie at Laravel and any advice and help would be appreciated. I am planning to cre...

0 Likes
2 Replies

How to show catagory parent of category in view

hello everyone im new in Laravel 4 (this is first time i use it) i try to make a small project using...

0 Likes
6 Replies
posted 10 years ago

what is the difference between yield and section?

#Code 1: layout.blade.php: @yield('content') view: @extends('labout') @section('content') Content h...

0 Likes
1 Replies
Solved

Weird behaviour when @foreach uses an @include with @extends (Bug?)

Hi everyone! I keep getting this weird behaviour, I'm not sure if I'm missing something or if it's s...

0 Likes
0 Replies

Array to fill a checkbox

I have a array(username => 'blalba', ...) and I want to create checkboxes with the username value...

0 Likes
2 Replies
Solved

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.