Questions tagged as 'laravel'

1
answer

How to reconfigure the APP_KEY of a Laravel 5.1 application

Today I restored my Macbook Pro because I had some incompatibilities with the El Capitan (beta) . During this process, I forgot to back up the .env file of my project, so I was not able to login to the application (because of APP_K...
asked by 27.07.2015 / 13:31
1
answer

Call to undefined method MemberStatus :: all ()

After creating a model, one of them usually has this problem:   Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_UNKNOWN)   Call to undefined method MemberStatus :: all () The table in the database exists and was created b...
asked by 17.05.2015 / 17:43
1
answer

Slug and Post / Get on the same Route - Laravel

# PÁGINA DE PRODUTO - RELACIONADA AO CARRINHO Route::get('produtos/{slug?}', 'ProdutoController@getIndex'); Route::controller('produtos', 'ProdutoController'); My current code is the one above and it's working. I did this by the fact that if I...
asked by 16.04.2015 / 14:34
0
answers

Extending the Filesystem class in Laravel 5

I'm having some problems with the Filesystem class. To solve my problem, I want to change the put () function of this: public function put($path, $contents, $lock = false) { return file_put_contents($path, $contents, $lock ? LOCK_EX : 0)...
asked by 13.03.2015 / 13:29
1
answer

Download Image via Ajax + Laravel

I'm trying to make a script for Image Download, by Ajax. It can be one or several. As you can see in JS, it has a each function that looks for the selected images in the system. Hence, I call Ajax to take the Photo ID as a parameter so th...
asked by 30.04.2015 / 16:41
0
answers

Help with where in Laravel

Hi everyone, I wanted your help in a where. In my system it is like this, I am on the photo gallery page of the Resort (id = 1), on this page I can register the photos of the month / year of the development (the steps of the work). When I reg...
asked by 17.01.2015 / 17:47
1
answer

More than one relationship in the same model

My client class has a one-to-one relationship with endereco and one-to-many with contacts. How would the functions be in Cliente to work? and Migrate ?     
asked by 30.09.2014 / 13:44
1
answer

How to get the id of a user inside the creation of a Validator in Laravel?

public function boot() { //Criação de uma nova validação \Validator::extend('unique_cpf', function ($attribute, $value, $parameters, $validator) { $value = str_replace(['.','-'],'', $value); return ((DB::table...
asked by 03.01.2019 / 17:04
1
answer

Why when I load my blade layout, my css does not appear?

Mycodedefininglayout:<!DOCTYPEhtml><html><head><title>VPO-@yield('title')</title><!--Icons--><linkhref="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link rel="style...
asked by 21.09.2017 / 00:11
1
answer

I have a problem where I really do not know how to make an event that listens to an action in Laravel

I have a slide show of images where the images registered in the bank appear. The table is called events . In this table there is a field called data_fim , which would refer to the end of the event date, and I also have a field called status...
asked by 24.09.2017 / 00:48