Questions tagged as 'laravel'

1
answer

How to create Models in Laravel from tables already created in the Mysql database

Good morning guys, I have a question in Laravel, I had a database created in Mysql and used the Xethron / migrations-generator to create the migrations from the tables created in the database, but how can I generate the Models in the Laravel fro...
asked by 21.04.2018 / 16:50
0
answers

Login problems with google

I'm using Laravel Socialite to sign in to google accounts. It's working perfectly. But if I log into an account and use the browser back button to choose another account to login, the following error is displayed: Laravel \ Socialite \ Two \...
asked by 11.09.2018 / 14:45
0
answers

How to have a good .blade indentation in VSCode?

Example of expected result: <body> @extends('t') @include('as') </body> Reality sample with PHP extension <body> @extends('t') @include('as') </body>     
asked by 11.04.2018 / 16:31
1
answer

Laravel / Eloquent - Query on more than one table

I have the following Tabelas/Models and I am not able to make a query: Model 1 id | Name ---+--------------- 1 | Model1.1 2 | Model1.2 3 | Model1.3 Model 2 id | Name | model1_id ---+----------+---------- 1 | Mode...
asked by 07.10.2017 / 21:33
1
answer

Store stylized text for a news site [closed]

I am creating a news and articles website and this site will have a control panel where the adm will do the CRUD of the news and articles that they want to insert in the site. Well, I would like to know the best way to stylize this text and s...
asked by 10.04.2018 / 17:27
0
answers

SQLSTATE error [42S22]: Column not found: 1054 Unknown column '' laravel project, table with two foreign keys

Function in the controller for voting projects has two foreign keys, user_id and projeto_idProjeto , follows function: public function votar($id){ $usuario = Auth::user()->id; $votoss = Votos::where('projeto...
asked by 10.04.2018 / 16:44
1
answer

Error trying to get property of non-object from Laravel

Contextualization: The register method of the ProjectController.php class saves the project data to the database and then redirects to the page in the editing mode. Redirecting the page in edit mode requires the id of the project. Pr...
asked by 09.04.2018 / 19:37
0
answers

Lumen / Laravel - PDOException: could not find driver

I want to connect Lumen to MySQL. PHP INFO link Web.php file (containing the routes) $router->get('/', function () use ($router) { $results = app('db')->select("SELECT * FROM resenha"); return $router->app->ver...
asked by 04.04.2018 / 19:25
0
answers

Routes are returning 404 after putting .htaccess!

> RewriteEngine On RewriteCond %{HTTPS} off # First rewrite to HTTPS: # Don't put www. here. If it is already there it will be included, if not # the subsequent rule will catch it. RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] #...
asked by 10.04.2018 / 05:49
0
answers

Error 500 in API Laravel in Heroku only via POST

I have an API made in Laravel, I did all the local tests, everything ok, I loaded the Heroku, I ran the server, and I have the following situation: In the local environment, all requests in any method work, POST, GET, DELETE, but in Heroku, I...
asked by 01.04.2018 / 19:23