Questions tagged as 'laravel-blade'

1
answer

Access object element returned to view by laravel blade

I'm working with blade laravel, I need to access the internal elements of an array that I return to my view from the controller, this is the result when I make a dd [! [Arrangement] [1]] [1]     
asked by 20.02.2018 / 22:04
2
answers

Duda View Composer and View Creator Laravel 5

Using laravel 5.2 I have two views: principal.blade : <!DOCTYPE html> <html> <head> <title>@yield('meta_title', $meta_title)</title> </head> <body> <div id="main"&...
asked by 31.01.2017 / 14:49
2
answers

belongsTo error in AppServiceProvider

I have an error in the belongsTo relationship in the welcome view, the error is the following: "Undefined property: stdClass::$work (View: ...\views\welcome.blade.php)" I recover the data from the query made in AppServiceProvider since it i...
asked by 26.11.2017 / 21:34
1
answer

Pass variables to the Laravel view 5.7

I tell you I am trying to pass the data of an array to a view but I can not specify this is the controller code $lists = array(["name" => "Cerchas", "status" => "1"], ["name" => "Ventanas", "status" => "...
asked by 13.12.2018 / 17:49
1
answer

Laravel 5.5 how to print an object in the view?

I'm starting in Laravel 5.5, and I have the following problem. I am creating the user login, I authenticate the user, but when I see it, I do not print it (Error: Undefined variable: users (View: C: \ xampp \ htdocs \ system_cine \ resources \ v...
asked by 26.09.2018 / 18:23
1
answer

Laravel create a multidimensional array

I have a query in mysql that returns a row of records like this, the first field is the marca and the second the modelo , what I try to do with PHP is to mount an array with the following structure to pass it in view of blade grou...
asked by 01.08.2018 / 15:01
1
answer

syntax error, unexpected end of file laravel

Well my query is because I read my code a thousand times and I do not know where the error is, I have a pure php app that I'm trying to integrate with laravel but I can not find the error of syntax error, unexpected end of file create...
asked by 09.07.2018 / 04:34
2
answers

How does Laravel work exactly in your MVC model?

My question is about how Laravel works, I know that your model is MVC and also that the one that makes the transactions is the Controller, I mean ... Vista < -------- > Driver
asked by 23.01.2018 / 19:21
1
answer

Laravel: Blade directive does not work

Perhaps there is a better way to do the following but I would like a bit of rectoring to know what is wrong. I am trying to create a blade directive which can format weights or dollars, I mean that if we give an amount like 35000 this directive...
asked by 12.01.2018 / 17:57
2
answers

Delete in Laravel 5 MethodNotAllowedHttpException '

I'm trying to delete a post in Laravel and I get Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException So I have my delete button <div class="col-md-6 text-right"> <form method="DELETE" action=...
asked by 21.12.2017 / 22:07