Internally everyone is working, migrations , tinker , sqlite3 , but in the server application it always queries mysql instead of sqlite for all operations, ie it is using Connector.php instead of% with%...
I need to do deploy for production of an application that I migrated to laravel 5.4, in test environment I am using the virtual host on windows where I type in url 'mysite1' and until then beauty.
But when I was setting up with .htaccess when...
I'm not able to save multiple images in my seat, my code below to follow the highlighted line with the arrow ( - > ).
Note: when it was just a normal saved image.
public function store(Request $request)
{
$this->validate($reques...
I'm trying to use the Laravel authentication system with some customizations.
This is my User model:
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Support\Facades\DB;
class...
I'm using Laravel on my TCC and I study it through videos and articles from the internet.
I created the authentifying part with the make: auth command and everything is working correctly, but I would need to change the fields of the User tabl...
I have a problem with eager loading in Laravel 5.4.24. Following the documentation, I added the code:
$profiles = Profile::with(['platforms' => function ($query) {
$query->where('name', 'PC');
}])->get();...
I'm trying to create a migration that has a foreign key referencing the id of a table from another database, both MySQL.
Follow the code:
//config/database.php
'mysql' => [
'driver' => 'mysql',
'host' => env...
Are you sending all pages to email, but do not send the information of input ?
Controller
public function store(Request $request) {
Mail::send('template.contato',
array (
'nome' => $request -> input...
I have a column named "code". Is it possible to fill it out using the same method that inserts the form? If so, how can I implement this in my code.
Method that receives the form and inserts it into the bank.
public function insert(Ma...