Questions tagged as 'laravel-5.4'

2
answers

Change storage location in laravel 5.4

The current storage location for laravel is / laravel / storage / app / public . How do I switch to / laravel / public . I tried editing filesystems.php but I was not successful: Controller store function: public function store(Request $r...
asked by 17.02.2017 / 17:56
1
answer

Blade OR syntax within the Laravel Collective input value

The following input works normally, but when I move it to the Laravel Collective syntax, it says that the $servico variable does not exist. It does not even exist, so it should display the value null ). The syntax of...
asked by 05.10.2017 / 13:30
1
answer

Many relationship to many laravel

Well, I've tried to read the documentation and develop this relationship, but I can not really tell you what the user's name is. The database model looks like this: % of% involved App\User App\TipoUser App\UserTipo And in my model i...
asked by 04.05.2017 / 01:45
1
answer

Migrations Laravel 5.4

I'm having trouble trying to run my migrations when I run:    php artisan migrate: refresh --seed The error below occurs: [Illuminate\Database\QueryException] SQLSTATE[23000]: Integrity constraint violation: 1217 Cannot delete or upda...
asked by 19.06.2017 / 02:57
4
answers

Formatting date with Laravel

I can not change the date format using laravel 5.4 My model looks like this: class Feriado extends Model{ protected $fillable = ['id', 'data', 'descricao', 'created_at', 'updated_at' ]; protected $dates = ['data'=> 'm-d-Y...
asked by 27.10.2017 / 04:06
1
answer

Multiples environment laravel

How do I create multiple environment and mute at runtime the environment I'm using in laravel 5.5?     
asked by 27.10.2017 / 21:03
1
answer

Save form data to the database

I'm having a hard time trying to create a form in Laravel 5.4 . The form appears normal, but when I click the button, the page reloads and the data is not saved in the database! {{ Form::open(array('url' => 'users')) }} <div class="form...
asked by 24.05.2017 / 14:30
1
answer

Error sending files to server aws s3 in Laravel

I'm trying to upload a file to Amazon's s3 server, I followed the Laravel 5.4 documentation that talks about FileSystems. But it returns the error: Error executing "ListObjects" on "https://s3.amazonaws.com/comercio-urbano?prefix=myfile.txt%2F...
asked by 04.04.2017 / 16:00
1
answer

Case-sensitive query on sql server with laravel 5.4

I am querying the database (sql server) for user and password validation with laravel 5.4 but the query is being run as case-insensitive. In the database it is:    pwd = Aa12A Input receives:    password = aa12a The result is:...
asked by 15.03.2017 / 16:56
2
answers

How to implement a validation rule in Laravel?

I would like to know how to validate a rule in the Auth form. In this case, it is a CPF rule. Validation rules and error messages I already have, but I do not know how to implement it in the framework. Should I put the rules directly in...
asked by 08.09.2017 / 22:05