Questions tagged as 'laravel'

1
answer

Route groups with default values in Laravel

I need to understand how I create routes with default values (it would be the default we have in the switch function of PHP). I'm looking for something like: Route::group(['prefix' => '/'], ['as' => 'public'], function(){...
asked by 22.07.2015 / 15:05
1
answer

In laravel, what is the file indicated to use MacroTraits?

In Laravel, some classes use trait MacroableTrait . Through this trait you can create settings like: HTML::macro('urlQuery', function () { // Faça alguma coisa aqui }); HTML::urlQuery(); // O método urlQuery é "criado" ma...
asked by 16.07.2015 / 15:09
1
answer

Laravel - Blank Screen

What I need I want to check if a blank Laravel project is working properly on the development server, ie, I just want to see if it loads the view at least, and then I'm going to run some tests. What I did I downloaded and installed Lara...
asked by 06.04.2015 / 21:05
1
answer

Integer data not saved in table as Eloquent of Laravel 5

I have in my database a column called permission that dictates the permissions of users on my system. User 1 is an administrator and user 0 is not. The problem is that when I save a new user and select by selecting the user's permissio...
asked by 26.05.2015 / 20:35
1
answer

How to delete all records from a belongsToMany

In laravel, when we have a many-to-many relationship, we have a method called attach and detach The attach adds entry in a n:n relationship, and detach removes them. In both cases, these operations are performe...
asked by 09.02.2015 / 14:24
3
answers

Problem uploading Laravel / Intervention image

I have a problem when I try to upload an image, well, when I submit on form it returns the following error: Intervention\Image\Exception\NotWritableException Can't write image data to path (public/images/products/2014-06-01-16:24:38-581165_571...
asked by 01.06.2014 / 19:20
1
answer

Error saving data from a form to different tables

I have two Entries and Company tables that have a 1 to 1 relationship I have a form that the user selects if it is pf or pj, if it is pj it opens the options to save the company. But when I give the $ company- > save () it generates an...
asked by 21.03.2014 / 04:38
1
answer

Multiple POST Optimization via Ajax

I have a small application, and I was building it as I got to know Laravel, so nowadays there are things I see that are wrong and I try to adapt to good programming practices and one of the key points is the endless inclusions in db , via ajax....
asked by 18.02.2014 / 19:49
0
answers

Client report in MYSQL [closed]

Good evening, gentlemen, how are you? I'm facing a problem and I'm not able to resolve it. Below is an example of the structure of my database: IneedtomakeascriptinMYSQLthatselectspeoplewhomeetthefollowingconditions:1-PESSOA_ENDERECO.UF="...
asked by 13.12.2018 / 22:08
0
answers

Change the data type of the x-axis of a graph? PHP / Laravel 5.6

Good evening, I'm using a tool for rapid development called QuickAdmin, I need render a graphic on the screen for the user who has a data of type x on the x axis and on the y axis a data of type time. The graph will look like this: Howeve...
asked by 08.12.2018 / 00:39