Questions tagged as 'laravel'

1
answer

How to solve loading problem css and js laravel in production?

When I run my local application, styles and js are loaded normally. The css and js are in public / css and public / js. In production are not loaded, below the production .htaccess: <IfModule mod_rewrite.c> <IfModule mod_negoti...
asked by 10.11.2016 / 21:12
1
answer

Insert page break when generating PDF with Snappy PDF in Laravel 5

I am generating a PDF in Laravel using Snappy PDF. The problem is that you are not breaking the page in the right place. I've already tried using% css% of CSS where the page break should have been, but it did not work.     
asked by 24.08.2016 / 20:06
1
answer

Laravel Update With Relationships - Good practice

I created an Update for a Products table that is related to another table that is the Product (product_info) for this product. But when I do Update I change the Product information, I delete the article and re-create an article with the same or...
asked by 14.10.2016 / 19:06
1
answer

Validation with Internationalization in Laravel 5.3 presenting error

I'm creating an application where I have to validate the data sent to the bank (obvious), but I'm having the following error:    ErrorException in FileLoader.php line 109:       Object of class Illuminate \ Routing \ Router could not be conve...
asked by 14.10.2016 / 21:11
1
answer

Authenticate in a database and change information in others

So I need to create an application with Laravel 5 where different users can be authenticated in a specific database where the system is. After logging in, each user can change information within the system, and this information must be on ano...
asked by 12.08.2016 / 21:41
1
answer

Slow loading with JQuery DataTables plugin

I'm using JQuery DataTables on a small system and everything was fine until I came across a listing of almost 2500 records ... The point is that it takes some time for the information to be loaded and adjusted in the DataTable, which causes i...
asked by 09.08.2016 / 15:04
1
answer

Saving multiple array at once laravel

Well, I have a function that is complex, because I need to make multiple for within the same function because of the complexity and the amount of information. I am consuming an API where I need to collect monthly data of a certain pers...
asked by 09.08.2016 / 20:02
1
answer

How to configure the host file to direct to the server of a "virtual box" virtual machine?

I have a windows 7 virtual machine using virtual box. Inside this machine I have a laravel study project. Inside this machine I access this project through url "lara/" , configured in routes. I'd like to know how to direct a request fro...
asked by 18.07.2016 / 22:50
1
answer

Set Connection Dynamically in Model Laravel 5.1

I saw that I can use different connections for my models by defining them as follows: class Aparelho extends Model { protected $connection = 'minha_conexao'; protected $table = 'aparelhos'; } But how can I define this dynamically? T...
asked by 15.08.2016 / 16:14
2
answers

Is it possible to capture the current url in the blade view?

I would like to capture the url example, /user/** (everything starting with / user), I'm using laravel and blade, using Request :: url () I get localhost:8000 but I need something that can capture the routes. Thank you     
asked by 15.08.2016 / 15:40