laravel-blade Questions

4

Solved

I have data that I am creating a chart using d3.js. I have that part working with hard coding the data as such var data = { "name": ["A", "B", "C", "D", "E"], "vals": [48, 35, 34, 21, 11] } W...
Amphipod asked 3/8, 2017 at 23:11

7

Looking for a ternary operator for blade templates @if(Auth::check()) ? yes : no @endif Can't seem to get it to work this works @if(Auth::check()) yes @else no @endif suppose there is not muc...
Decapolis asked 13/8, 2014 at 10:57

3

I want to use the cknow/laravel-money package in pretty much every page in my app. I thought a tidy way to do this would be to import the class in the parent blade. However, child templates do not ...
Ascocarp asked 27/1, 2019 at 22:34

2

Solved

Using Laravel 5.5.34, I have trouble outputting debug information in Blade templates using the dump() helper. {{ dump('test') }} results in the following output: I wouldn't expect the raw str...
Chichi asked 11/2, 2018 at 12:32

6

Solved

In my application, a user has the ability to remind another user about an event invitation. To do that, I need to pass both the IDs of the event, and of the user to be invited. In my route file, I...
Scribbler asked 28/7, 2015 at 16:8

15

Solved

How can I display the validation message in the view that is being redirected in Laravel ? Here is my function in a Controller public function registeruser() { $firstname = Input::get('firstname...
Aerie asked 4/11, 2014 at 10:27

8

I'm rendering a page that is primarily a form with view::make in Laravel and it is crashing, causing ERR_CONNECTION_RESET. After a long investigation and many red herrings, I started erasing (not c...
Arborvitae asked 7/1, 2015 at 22:59

1

In a blade email view is it possible to get the To address? eg Mail::to('[email protected]')->send(new ActivationEmail( $data )); Accessing the to address in blade eg {{ $to }} I kno...
Phyl asked 26/5, 2018 at 10:1

7

Solved

I'm using laravel (5.1) blade template engine with the localization feature. There is a language file messages.php within the /resources/lang/en/ folder: return [ 'welcome' => 'welcome', In...
Doloroso asked 9/9, 2015 at 21:19

10

Wondering if its possible to change the size of checkbox as it's possible with buttons. I want it to be bigger, so it makes it easy to press. Right now its looking like this: Code: <div cla...
Brythonic asked 30/3, 2014 at 11:32

4

Solved

I want to return multiple variable to my view. $currentUser = Auth::user(); $needToBePassed = "Lorem Ipsum" View::share ( 'currentUser', $currentUser); This code works fine, however how can if I...
Ahlers asked 4/10, 2015 at 23:34

8

How can I compile a blade template from a string rather than a view file, like the code below: <?php $string = '<h2>{{ $name }}</h2>'; echo Blade::compile($string, array('name' =&gt...
Levine asked 3/6, 2013 at 6:51

3

Solved

In laravel Blade templating we can exclude some parts of HTML with this code: @if (Auth::user()) <li><a href="{{ url('/home') }}">Mein Profil</a></li> <li><a hr...
Rihana asked 3/5, 2016 at 15:32

22

Solved

I have this code: <select required="required" class="form-control" name="title"> <option></option> @foreach ($titles as $key => $val) @if (stristr($key, 'isGroup')) <op...
Rushing asked 19/3, 2015 at 15:11

6

Solved

I have a Laravel 7 component which looks like this class Input extends Component { public $name; public $title; public $value; public $type = 'text'; /** * Create a new component instance. ...
Intyre asked 28/4, 2020 at 15:33

3

Solved

app.js var Users = { template: ` <tr v-for="list in UsersData"> <th>{{ list.idx }}</th> <td>{{ list.id }}</td> </tr> `, data: function () { return { Us...
Alphonsoalphonsus asked 26/5, 2017 at 4:48

6

Is there a syntax to specify inline if and else if statement in Laravel blade template? Normally, the syntaxt for if and else statement would be : {{ $var === "hello" ? "Hi" : "Goodbye" }} I wo...
Disfigurement asked 26/3, 2017 at 4:44

6

Solved

From the Laravel docs, you can include 'sections' inside layouts using two methods: <html> <body> @section('sidebar') This is the master sidebar. @show <div class="contain...
Chatman asked 16/3, 2015 at 6:1

3

Solved

In Lumen, I can do this in my blade template: {{ url('/css/app.css') }} In Laravel I could do {{ asset('/css/app.css') }} Is the url helper all I have to work with in Lumen?
Agamic asked 15/5, 2015 at 1:29

4

Solved

I need the HTML of my Blade template as a string. I'm going to use that HTML string to generate a PDF from it. At the moment I have Blade streaming as a response back to browsers. return view('...
Glia asked 19/6, 2018 at 23:38

7

System Details : Using WAMP2.5 in Windows 64 bit MYSQL:5.6.17 PHP:5.5.12 Apache :2.4.9I installed laravel via composer installation . It was all fine since recently all my views stopped showing any...
Erythropoiesis asked 2/7, 2014 at 19:4

15

Solved

Is there a truncate modifier for the blade templates in Laravel, pretty much like Smarty? I know I could just write out the actual php in the template but i'm looking for something a little nicer ...
Cthrine asked 21/2, 2013 at 21:38

14

Solved

I am using Eloquent together with Laravel 4's Pagination class. Problem: When there are some GET parameters in the URL, eg: http://site.example/users?gender=female&body=hot, the pagination link...
Veto asked 18/6, 2013 at 1:24

13

I have an exception in one of my views. However, instead of telling me the name of the view so I can find it and fix it, laravel says it is in app/storage/views/110a3ecc0aa5ab7e6f7f50ef35a67a8b, wh...
Chen asked 12/9, 2014 at 16:59

0

I'm wondering if it is worth moving from this code. @extends('layouts.app') @section('title', 'Page Title') @section('content') @foreach ($tasks as $task) {{ $task }} @endforeach @ends...
Bechtold asked 3/3, 2022 at 12:11

© 2022 - 2024 — McMap. All rights reserved.