Questions tagged as 'laravel-5'

1
answer

Deleting local product image Laravel

Well I have a product and I have an image being recorded locally. I need the backend when the product is deleted the local image is deleted. When I delete it, it deletes the data from the database, deletes the image information in the da...
asked by 17.06.2015 / 20:57
1
answer

PDF Generator with Laravel Framework?

I need to make snappy generate reports from BD data. But for this I needed examples of using snappy , in the documentation of github you even have an example, but that example did not help me. I needed an example of how to...
asked by 06.03.2017 / 19:04
3
answers

How to solve foreign key error 150 in migration with laravel?

I'm having trouble creating the foreign key in migration. I'm working with PHP, LARAVEL 5.3 and MYSQL. You are giving me the following error: Below is my code: Table Migration of the categs class CreateCategsTable extends Migr...
asked by 28.07.2017 / 12:49
1
answer

Remove "public" directory from laravel 5 through IIS web.config

I have an IIS server where a site built in Laravel 5.3 will be hosted and I need to remove the public folder from the url. NOTE: I am aware that if I enter the IIS manager and change the destination folder of the site to "wwwroot / mysite /...
asked by 18.11.2016 / 18:12
1
answer

Why are my custom error pages not being called?

My custom error page is not being called. OS: Linux Ubuntu PHP 7 / Laravel 5.5 I have already created the folder "resources / errors" and in it the file "404.blade.php" I have already given permission on the OS to the folder I have a...
asked by 28.08.2017 / 15:49
1
answer

GetType () Laravel

I'm trying to get the column type of the tables from my BD , and how can I use PHP with Laravel I've tried using GetType to get the types and show on view . But the code is only returning Object . Here is t...
asked by 30.01.2017 / 14:11
1
answer

Custom authentication with CPF and E-MAIL

I'm thinking of a way to authenticate users using email and the CPF of it, so far I have not found a way to do it, does anyone have a suggestion? public function auth(Request $request) { $credenciais = $request->only('cli_email', 'cli_c...
asked by 22.08.2016 / 21:16
1
answer

Use 'WHERE' if value is different from 'NULL' in a search appliance

I'm trying to do a simple search engine with some text fields: $nome = $request->nome; $email = $request->email; $bairro = $request->bairro; $request = Contato::where('nome', 'like', $nome) ->where('email', 'like', $email)...
asked by 06.05.2016 / 00:45
1
answer

Problems with auth :: routes

I am having problem with Auth::routes() I use the framework Laravel in version 5.2 my route file is like this: Route::singularResourceParameters(); Auth::routes(); Route::group(['middleware' => ['cors']], function (){...
asked by 24.10.2016 / 14:47
1
answer

Create unique constraint with two fields in Laravel request

I have in the creation migration of my table the following: public function up() { Schema::connection('database2')->create('empresa_funcoes', function(Blueprint $table) { $table->increments('id'); $tab...
asked by 06.10.2016 / 16:49