Questions tagged as 'laravel-5'

1
answer

Problems configuring routes on apache2 server with laravel 5.1

I was doing a local project and it always ran with php artisan serve and everything was fine now that I'm uploading the project to a digitalocean machine I'm having problems with the routes the following error is happening: I think...
asked by 15.05.2016 / 19:00
0
answers

Laravel 5 (Eloquent) JOIN between two queries, is it possible?

The following SQL performs two queries and "adds" the hard answers "sideways": select * from (select id,name from client where id = 20) as a join (select id,age from client where id = 20) as b ON a.id = b.id I wonder if it's possibl...
asked by 15.04.2016 / 21:40
1
answer

What is the best way to do calculation between attributes of a model, to display in the view?

I'm currently calculating everything in the view, something close to the below: {{{ $object->a + ($object->b==1?5:10) + $object->c * (int)object->d... But it does not seem like a good idea. I do not want to save the calculated...
asked by 12.04.2016 / 07:47
1
answer

Request returning Decimal

I have a field in a form that is type text and when I give a post in the form and I get the request-> get this field returns string when there is some letter in it. but if it contains numbers it returns in reqeust-> get as decimal. How do I m...
asked by 29.02.2016 / 20:02
2
answers

Method App :: setLocale () in laravel 5.2

After organizing my code, I tested to see if it worked for real-time language change with the App::setLocale() method does not work, but when I make the change in the file app.php o locale it works perfectly, this translating my...
asked by 29.02.2016 / 19:40
1
answer

Authentication and user registration Laravel [closed]

Hello, I started working with Laravel 5.0 very soon and I have a slight doubt, by default Laravel 5.0 already comes with the Authentication and Registry part implemented, but I noticed that when I am logged in, I can not register No one. I'd...
asked by 24.02.2016 / 12:52
0
answers

How to record and display images using PostgreSQL and Laravel 5.1

I have the following code in my Controller to save the image to the database, there is no error so I think it works fine. $data = Input::file('assinatura'); $escaped = bin2hex($data); $tecnico->assinatura = $escaped; $tecnico->save();...
asked by 16.02.2016 / 13:20
0
answers

Cycle of execution of ordered migrations in Laravel 5, how to change it?

I'm starting to use this framework and I noticed that migrations when not created in a running cycle for execution can be several errors, is this normal? For example, if you create a migration city but it has a constrai...
asked by 25.02.2016 / 04:41
1
answer

Error page 500 returned instead of Laravel error page

I do not know why errors are not rendered in my project, it simply does not go through the handler method. bootstrap / app.php <?php $app = new Illuminate\Foundation\Application( realpath(__DIR__ . '/../') ); $app->sing...
asked by 02.03.2016 / 18:12
1
answer

Problem with routes with alias in laravel 5.1

I am having problems creating routes with aliases in Laravel, I can use normal routes, however, when I add an alias in the route as: Route::get('admin/categories', ['as'=>'categoria','uses'=>'AdminCategoriesController@index']); Sorr...
asked by 10.12.2015 / 23:24