Questions tagged as 'laravel-blade'

1
answer

How to show validation message below a group of radio buttons?

For the problem below consider that I'm using Laravel (5.6 * with style files and default javascript (no changes). My problem is basically when trying to display the validation message of the radio (id: gender) field group, these are groupe...
asked by 14.03.2018 / 20:16
1
answer

Error working with date format in Laravel

I'm having a hard time manipulating an input of type date . When using this type of input the date is formatted as Y-m-d, however, in my form I want to type dd / mm / yyyy. Model User: //... protected $dates = [ 'data_nascimento' ];...
asked by 15.03.2018 / 05:55
1
answer

How to use Blade-Laravel in an MVC project that is not running with Laravel?

We have here a great system in production that needs to be redone 100%. Many discussions and uncertainties have not yet reached the conclusion of the framework that will be used. At the moment we are using an MVC architecture but without a...
asked by 27.11.2017 / 20:19
1
answer

Append selected to option after equality check

I have the following select in a form in laravel: <div class="form-group has-feedback {{ $errors->has('nivel') ? 'has-error' : '' }}"> <label for="nivel" class="col-sm-2 control-label">Nível de acesso</label> <d...
asked by 28.11.2017 / 19:16
1
answer

How to escape a javascript variable for the Laravel blade?

Hello, I have this javascript function that gets a parameter: function teste(id){ document.getElementById("campo1").innerHTML = id; document.getElementById("campo2").innerHTML = {{app\User::find("id")->titulo}} } How do I get the Use...
asked by 24.02.2016 / 21:35
1
answer

Laravel Controller add content?

I'm newbie and would like some help, I have a controller that performs a query. Controller $user = $this->user->find('1'); view('index', compact('user')); View @forelse ($user as $u) <h1>{{ $u->n...
asked by 03.01.2019 / 07:36
0
answers

Result of relationship with self-relationship?

Using the self-relationship with you the following result.: Collection {#335 ▼ #items: array:7 [▼ 0 => Post {#266 ▶} 1 => Post {#267 ▼ #fillable: array:3 [▶] +incrementing: false #connection: "sqlite" #t...
asked by 05.01.2019 / 01:38
0
answers

Laravel: Templates blades, Keep a modification made by a script after the view is extended

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script><divid="cm-menu-scroller"> <ul class="cm-menu-items"> <!-- Melhorias:...
asked by 28.11.2018 / 17:31
1
answer

How to pick specific item On the laravel blade

How do I get a specific item in Laravel blade ? Example: $(document).ready(function(){ var id = 1; $('body').append('{{ $projeto->'+id+'->name}}' }) <body> Deve Aparecer aqui o nome do projeto </body>     
asked by 12.11.2018 / 12:49
1
answer

How to use the "break" in the blade template?

I'm developing a modal checklist where new protocol data will be registered. Each attribute of the item will be informed by the user and this information will be registered to the checklist_protocolo table of the database. But informat...
asked by 08.11.2018 / 17:49