All Questions

3
votes
1answers
212 views

Different output inside modal (Laravel 5.4)

I have this code in my trips.blade.php. The problem is when my $t->employees is outside the modal, I retrieve all my employees but when I put my $t->employees inside my modal, I can only retrieve 1 Da...
2
votes
3answers
379 views

Laravel Blade template how to return null instead of ErrorException when trying to get property of non-object

I'm writing some Laravel Blade templates, and I have models that may have null objects. I would very much like to just try and get the object property and if there is an error, just return null. So ...
2
votes
3answers
113 views

Laravel - How get images from /storage

I'm having problems to get images from storage. So i upload files and images to storage. When the file is image i upload to storage/images/ and the file goes there right. In database it saves this: /...
2
votes
2answers
1271 views

What is the best practice to show old value when editing a form in Laravel?

I am writing the logic for an edit form and have some complications when displaying data in the inputs. When I initally show the form, I show the records values like: value="{{$dog->title}}" ...
1
votes
1answers
136 views

Laravel - Nested blade echos

I am using a blade echo inside of a stylesheet reference in my header section. This is for specifying a CSS for a skin to the site. The original line is: <link href="{{ asset("/dist/css/skins/ski...
1
votes
4answers
2724 views

Right way to build a link in laravel 5.3

Im trying to build a dynamic link with a view page (blade) with Laravel 5.3. My approach is: <a href=" {{ URL::to('articles') }}/{{ $article->id}}/edit">Edit></a> that will ...
1
votes
1answers
268 views

Laravel 5 mix app.js file creation

I created a custom JavaScript file with a simple function: function picture(soemthing){ document.getElementById('idXYZ').src = "example.com"; } Then I added this file to the webpack.mix.js con...
1
votes
1answers
120 views

Return logic from Controller into View Laravel 5

I have tables: REGIONS id | name ----+------------------ 1 | South Luzon ----+------------------ 2 | North West Luzon ----+------------------ 3 | North East Luzon ===========================...
1
votes
1answers
627 views

laravel session_start() returning a 1

In laravel blade view i am doing {{session_start()}} and it is echoing out a why is that and how i fix it? i heard that laravel has session management already built in and you dont need session_star...
1
votes
3answers
442 views

Blade view not printing data from array

I've got a simple enough array of user information I'm trying to print. I can send the information to the view fine. And a command like: {{ $who->name }} will give me the name. However when I do ...

Previous Next