Questions tagged as 'laravel'

1
answer

PHP Fatal error: bytes exhausted After performing query laravel

Hello, in a given process of my code I need to execute a query that returns me 4500 rows from the database return Property::whereHas('portals', function ($query) { $query->where('portal_id', '=', '1'); })->get(); After exe...
asked by 26.08.2016 / 16:29
1
answer

Update a record with a single field

I'm using the l5-repository in my project, but I'm having the following difficulty: I have the code below to make the slug unique, but when I do an update it says that slug already exists, in> slug of the record I'm editing. How can I...
asked by 30.08.2016 / 19:34
1
answer

Is there any way to render a Laravel view to a string?

I would like to know if there is any way to save the return of a view in Laravel to a string . Generally, we return to view in order to "print" the result of an action on the page: function getIndex() { return view('hell...
asked by 24.08.2016 / 15:14
1
answer

How do I configure Laravel's Auth.Basic to accept another authentication field?

I'm using Laravel 5 and I want to use the auth.basic middleware. But in my database, the table used for authentication ( usuarios ), does not have the email field, but username - the default expected by Laravel 5 is...
asked by 03.08.2016 / 21:01
0
answers

Request select returning null value

Good afternoon, I'm having trouble getting the value of a select in the form below: {{Form::open(array('action' => 'FilterController@EstatisticaEsic', 'class' => 'form-filter'))}} <div class="col-md-2 col-sm-12 col-xs-12 d...
asked by 05.08.2016 / 20:02
1
answer

Laravel returns Incorrect table definition;

While running the migrate here, laravel is returning:    Incorrect table definition; there can be only one auto column and it   should be defined as a key. The code I am using to create the migration is attached: Schema::create('pessoa...
asked by 19.07.2016 / 14:35
0
answers

Disconnect frequently Laravel App

I created a CMS on the Laravel 5.2 platform, created the entire user system (login, register, reset pass, logout), however the user disconnects frequently, I have already disabled the Middleware VerifyCsrfToken but nothing happens. This h...
asked by 26.08.2016 / 06:31
0
answers

Is it possible to install Koel on a simple php server?

I wondered if you could install Koel , on a simple PHP server, basic hosting. If yes, how can I install it correctly?     
asked by 01.07.2016 / 16:00
1
answer

Laravel does not return BelongsTo

Oops I have two tables one with a Product name and one with a ProductName name. When I make the relationships in models, only the ProductCategory object returns the products, the Product object does not return the category. class ProdutoCateg...
asked by 13.07.2016 / 03:50
2
answers

How to keep a selected radio input in a view in Laravel?

How would I keep a input radio selected in my view , I have the following codes: View: <div class="col-md-3"> <div class="form-group"> <label>Tipo de Conta</label> <input type="rad...
asked by 13.06.2016 / 21:57