laravel-blade Questions

3

I have a component that outputs the $slot. But I want to do something like: Component <x-alert></x-alert> <div> @if ($slot) {{ $slot }} @else No available content @endif </d...
Poland asked 5/9, 2021 at 6:54

2

Solved

I need script only on one page. and it should load after jQuery. I tried in index.blade <script type="text/javascript" src="{{ URL::asset ('js/jquery.js') }}"></script> @push('custom...
Hardpressed asked 21/6, 2017 at 11:1

3

So I am working on a Laravel 8 app, with Inertia and Vue. The idea is that most of the pages are Laravel + Blade (good for SEO, fast loading etc...), but for selected pages that need a lot of user ...
Marlie asked 17/3, 2021 at 19:12

3

Missing required parameters for [Route: verification.notice] [URI: {language}/email/verify] I added the laravel email verification to my project, after using localization. But now I have the probl...

2

Solved

I'm using mpdf in Laravel and with this package version 4.0 The problem is that I have a list of questions in different heights which have 4 options, and I don't know the exact and approximate heig...
Ger asked 26/6, 2021 at 6:10

4

Solved

I'm trying to use Blade in my Vue file carousel-signUp.vue Like: <template> <div> <form action="{{route('dump')}}" method="POST" > /* Some code here...*/ </form> &lt...

12

Solved

In Laravel 4, my controller uses a Blade layout: class PagesController extends BaseController { protected $layout = 'layouts.master'; } The master layout has outputs the variable title and then...
Hildahildagard asked 20/4, 2013 at 8:1

2

Solved

Can anyone help me how to upload a file into aws S3 bucket using PHP laravel. But the file should directly get uploaded into S3 using pre signed URL.
Lawyer asked 20/6, 2020 at 11:46

10

Solved

I am new to Laravel and I have been trying to store all records of table 'student' to a variable and then pass that variable to a view so that I can display them. I have a controller - ProfileContr...
Thumbstall asked 13/5, 2015 at 16:29

5

I am using laravel 5.1 framework and I want to use asset() function in blade templates. Problem is that my application can have different domains: http://www.domain1.com and http://www.domain2.com...
Phalanstery asked 23/3, 2016 at 7:57

4

I've been looking for the reason why my code kept showing 2 spaces instead of 4. In the bottom also show as Spaces : 4. Code <!DOCTYPE html> <html lang="en"> <head> ...
Dovetailed asked 18/9, 2018 at 15:35

2

I am trying to create a Blade directive that will set a class on my table row depending on what gets passed in. The problem is that when I call it, the value of the variable is not being passed in ...
Civilize asked 5/4, 2016 at 19:58

5

Solved

I need to assign a custom extension to be recognized as a twig file in netbeans ('blade.php' as 'twig' file and give me syntax highlighting and code completion appropriately). The problem with usin...
Amice asked 15/2, 2013 at 20:58

6

Solved

Alright so I'm pretty new to Blade, and I did manage to get all the results that I asked for on my page. Now I want to show only 10 of the total items on my page and I seem to struggle with it, tri...
Scutt asked 28/10, 2015 at 14:12

3

Solved

I inherited a Laravel project that has many blade files with javascript inside tags within the blade file. The issue is that there is a lot of repetitive JS logic so I'd like to extract the JS and ...
Fathomless asked 19/4, 2019 at 6:11

3

Solved

The following code works on my development environment (Ubuntu 14.04 desktop) @if(env('APP_ENV') === 'production') // ... something But for some reason, the blade views on production (ubuntu 14...
Sprayberry asked 19/8, 2016 at 19:39

3

Solved

Let's imagine I have a blade component such as: <input type="text" id="foo" name="{{$name}}"/> <script> $('#foo').whatever </script> IRL, this component is far more complicate...
Rubefaction asked 5/6, 2019 at 18:52

10

Solved

In Laravel 4.0, I use the code below to compress the HTML laravel response outputs to browser, however it doesn't work in laravel 5. App::after(function($request, $response) { if($response instan...
Natator asked 22/3, 2015 at 15:52

4

Solved

I have a login modal. When the user log-in fail the authentication, I want to redirect back to this modal with : error message(s) and old input(s). Controller // if Auth Fail return Redirect::...
Hierarchy asked 2/5, 2015 at 13:2

3

Solved

I need to access some data (User details) in most views. What I have done: I created ComposerServiceProvider <?php namespace App\Providers; use Illuminate\Support\ServiceProvider; class Com...
Chromate asked 29/9, 2017 at 18:26

2

Solved

I've got a route defined as: Route::get('/novanoticia', 'HomeController@getNovaNoticia'); When I run php artisan route:list it shows nothing on the name column. How to add a name to the route i...
Runion asked 8/1, 2017 at 12:50

3

Solved

I am working in Laravel 6.2 and have a basic database that houses a questions table that brings back an id, slug, title, body, timestamps. I have a route set up at questions that calls a controller...
Jessee asked 22/1, 2020 at 2:46

8

Solved

I did not find how to use a clause (OR, AND) in view with @can, for checking multiple abilities ... I tried: @can(['permission1', 'permission2']) @can('permission1' or 'permission2') @can('permi...
Intended asked 9/12, 2015 at 20:34

4

Solved

this is my url http://project.dev/blogs/image-with-article so, here I need the parameter image-with-article in my blade to display which is a parameter named slug here is in my routes file I need t...
Doityourself asked 18/8, 2016 at 6:51

3

Solved

I want to concatenate javascript variable within blade {{ curly braces }} as following: Currently: ajax: "{{ route(api.colors) }}," What I want: var page='colors'; ... ajax: "{{ route(api."+pag...
Turnbow asked 7/11, 2017 at 12:59

© 2022 - 2024 — McMap. All rights reserved.