Questions tagged as 'laravel'

0
answers

How do I record the data of a form in the database in Laravel 5.4?

I have a small problem in producing a registration system, everything is working fine, but when I check in the database no data submitted in the form appears, ie it is not registered. Controller Class: public function Submit(Request $req...
asked by 18.09.2017 / 16:54
2
answers

how to orient image using intervation image [closed]

I need something to orient the image correctly and then to appear. I'm using laravel and image intervation <?php $img = Image::make("{{$file->caminho}}{{$file->nome}}")-orientate(); ?> <img src="{{ $img }}"/&...
asked by 27.08.2017 / 20:25
0
answers

Expired page Laravel, why?

I'm creating an api here, for some reason I get this message "The page has expired due to inactivity. Please refresh and try again." Follow Controller <?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Re...
asked by 06.09.2017 / 02:19
1
answer

Creating a message of success in being able to perform a LARAVEL action 5.4

I'm trying to get a successful message informed on a div while an action is being performed, but I have not yet succeeded, the error that appears is:    (3/3) ErrorException Undefined variable: sucess (View:   /opt/lampp/htdocs/proje...
asked by 05.09.2017 / 20:42
1
answer

How to identify which method called the view in Laravel 5.4?

How can I identify which método is calling view within itself? Example: IndexController.php public function create() { return view('index'); } Inside the file view/index.blade.php how do I return the method th...
asked by 29.08.2017 / 03:20
0
answers

What is the right way to pass variables to the Create Laravel page

I'm doing my TCC and I have a pre-registration page, where information of type [nome, email, senha, token] and it saves in the pre_register table. Then a email is sent to the person with a link, it contains the following:...
asked by 29.08.2017 / 01:14
1
answer

Column index in datatables laravel

When I did not load the data dynamically into the table I used this way to create the index column: link p> t.on( 'order.dt search.dt', function () { t.column(0, {search:'applied', order:'applied'}).nodes().each( function (cell, i) {...
asked by 23.08.2017 / 18:26
1
answer

Upload an html file to laravel

I have a website and I need to attach to this site a folder called processes where, when the user types meu-site.com/processos or meu-site.com/processos/index.html , the file is loaded. Locally I can do this by inserting the process...
asked by 01.09.2017 / 18:41
0
answers

Error with trying to insert information with routes

In api.php I have this code: Route::group(['middleware' => 'api'], function() { Route::post('clube/addClube', function(Request $request) { return App\clubes::addClube(['name' => $request -> input(['name'])]); }); }...
asked by 09.08.2017 / 04:34
1
answer

Dynamic Routes for Laravel pages

I want to create a dynamic route system without having to code gambiarras. Come on. I have the Routes: Route::group([ 'middleware' => ['web'], 'namespace' => 'LaraShop\Front\Http\Controllers', 'as' => 'page' ], funct...
asked by 04.08.2017 / 15:43