5
I’ve got this little problem in Laravel. The good old problem with the S that Laravel puts in the end. I have researched in innumerable foruns but the given solution does not work.
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'cautofacil.fornecedors' doesn’t exist (SQL: select * from
fornecedors
)
The TABLE in Mysql is CALLED SUPPLIERS
> <?php
>
> use Illuminate\Database\Schema\Blueprint; use
> Illuminate\Database\Migrations\Migration;
>
> class CreateFornecedoresTable extends Migration {
>
>
> /**
> * Run the migrations.
> *
> * @return void
> */
>
> protected $table = "fornecedores";
>
> public function up() {
I’ve given Protect on the table and yet it keeps putting the S maledit at the end. Can someone give me a light please?
Thank you very much
Enter the model code.
– rray
Check table name with database name may be wrong
– Rafael Buçard