Questions tagged as 'laravel-blade'

1
answer

Error when relating tables in laravel 5.5

Veran I want to do with laravel 3 tables: Plants, User and Comments. The story is that a user can write comments about the plants to ask or answer questions about the plant. Migration of the Plants table: <?php use Illuminate\Support\Fa...
asked by 10.02.2018 / 15:24
4
answers

Random data in Blade / Laravel 5.1

I want to generate random data in my views, specifically I want to go through the results of a query and each one assign a different color, all this in my views of Blade (Laravel) . Something like this (similar to what I want to do): $ar...
asked by 12.11.2016 / 03:05
1
answer

View pdf files in Laravel

I have pdf files already uploaded to the server, I load them in a list and I want to be able to show them to the user, but for all the links it always shows me the first one I went up. What I send from the controller: public function index(...
asked by 29.09.2018 / 17:36
2
answers

Obtain data from a user in Laravel

They ask me to show the data of a user (using their id), I have created the table and the model with artisan, I have filled two objects in the phpmyadmin database, in the model I have Put this: <?php namespace App; use Illuminate\Databa...
asked by 08.07.2018 / 22:16
1
answer

Laravel Form, Select from a Foreign Key

Table Products:    Primary Key- > product_code Movements Table:    Primary Key- > code_movement / Foreign Key- > product_code These would be the two tables to relate, and I use the Laravel collective I'm supposed...
asked by 07.09.2017 / 09:02
2
answers

Laravel 5 WithInput error

I am trying to have an error in the login form return me to the record view keeping the data in the form. with a return back () -> withInput and it makes the return correctly but it does not show me my data here is the code: RegistryController:...
asked by 05.03.2018 / 12:34
1
answer

CSS Routes Laravel Template

I am following an example of Laravel exercise and I would like to know if I can transform this: <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="/css/override.cs...
asked by 02.10.2017 / 09:58
2
answers

how can I redirect to a route

Good I want that when clicking on a button I redirect to another tab using laravel with the blade technology Route::get('home', function() { return view('onepage.home'); }); is my route.! <ul> <li><a href =" ">h...
asked by 06.09.2018 / 02:37
1
answer

Custom errors of 400, 404 and others

How can I customize 404, 400, and other errors in Laravel 5.6? I have my error pages listed in the errors folder inside view     
asked by 06.04.2018 / 05:48
2
answers

How is @forelse interpreted in laravel and what is it for?

I would like you to help me understand how the @forelse is applied in laravel .     
asked by 10.07.2017 / 08:08