Questions tagged as 'laravel'

1
answer

Value of checkbox is nil, Column 'situation' can not be null

I have a $table->enum('situacao', ['ativo', 'exonerado']); field. I created a checkbox to do the registration, but it returns the following error:    1048 Column 'situation' can not be null. How can I resolve? The checkb...
asked by 22.12.2017 / 15:56
1
answer

foreign key retry incorrectly formed laravel migration

use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateMenusTable extends Migration { /** * Run the migrations. * * @return void */ p...
asked by 02.02.2018 / 20:13
0
answers

Developing an application with webservice how to approach

I am doing a project that consists of an online platform for managing a clinic, where it should contain a website and an application. My main idea is to create a WebService to meet both platform and application requests. My project would b...
asked by 02.02.2018 / 21:04
1
answer

Problems when creating migrations - Laravel

I'm having problems, to create a migration on the terminal displays this ... [Symfony\Component\Console\Exception\CommandNotFoundException] Command "make:migrations" is not defined. Did you mean one of these? make:migration mak...
asked by 09.12.2017 / 11:17
0
answers

Laravel - Error "TokenMismatchException" - Form?

Why Laravel is giving error after submitting form, even inserting into form. {!! csrf_field() !!} It's still giving erro === TokenMismatchException Localhost - xamp - W 7 32 bts - PHP 7.2.0 in the windows environment Composer...
asked by 21.01.2018 / 03:52
0
answers

Migration with custom fields in Laravel

I'm not sure what to do, Is there a way to create fields in my Model and when running the Migration framework automatically create these fields in my Up method? In the documentation and tutorials that I see, it is always necessary to change...
asked by 19.01.2018 / 14:06
2
answers

Laravel how to fill a select with Eloquent?

I am using Laravel 5.5 and trying to fill a input select with Eloquent and using the following code: No controller : $tipos = Tipo::pluck('nome', 'id'); return view('teste')->with('tipos', $tipos); In view :...
asked by 30.12.2017 / 19:56
0
answers

Doubt Laravel application [duplicate]

I'm developing an application with Laravel on a HostGator hosting, but the access page of the login page (the index) is as follows: link How do I make site content (as well as all of the following files and directories) available from...
asked by 10.12.2017 / 01:36
0
answers

Request laravel returning null [closed]

Good afternoon guys, I'm new to frameworks but with the following problem: the request is returning empty for my query Thank you in advance "select * from 'usuarios' where 'cep' = ?" My controller is so public function procurapa...
asked by 11.11.2017 / 21:20
0
answers

Laravel Form Validation Reload F5

I have the following question: As soon as I submit a form it does the correct validation, but if I give F5 in the browser it adds up with the error messages and also adds the values of the fields that have already been filled. Would I have...
asked by 23.11.2017 / 14:29