Run this command in sail project folder:
docker-compose exec mysql bash
execute the mysql -u root -p
command
provide the default password password
then executes
Run this command in sail project folder:
docker-compose exec mysql bash
execute the mysql -u root -p
command
provide the default password password
then executes
# | |
# Create this file in the following folder docker/mysql/docker-entrypoint-initdb.d | |
# | |
CREATE DATABASE IF NOT EXISTS `test_1` COLLATE 'utf8_general_ci' ; | |
GRANT ALL ON `test_1`.* TO 'root'@'%' ; | |
CREATE DATABASE IF NOT EXISTS `test_2` COLLATE 'utf8_general_ci' ; | |
GRANT ALL ON `test_2`.* TO 'root'@'%' ; |
Laravel Homestead is an official, pre-packaged Vagrant box that provides you a wonderful development environment without requiring you to install PHP, HHVM, a web server, and any other server software on your local machine. Read more...
Download homestead box:
Acquire::http::Pipeline-Depth "0"; | |
Acquire::http::No-Cache=True; | |
Acquire::BrokenProxy=true; |
<?php | |
namespace App\Http\Controllers\API\Apps\Protocolos; | |
use Illuminate\Http\Request; | |
use App\Http\Controllers\Controller; | |
use Illuminate\Support\Facades\Storage; | |
class ObtenerProtocolos extends Controller | |
{ |
//tiene ingresos de una recudacion, tiene gastos del chofer, tiene gasto de la recaudacion | |
//tiene autos , y el chofer tiene auto | |
//Me voy a basar en esto que me dijiste en el caralibro | |
//Como vos tenes un chofer haria esto | |
$chofer = Chofer::find(1); //Obtengo un chofer | |
//El chofer, tiene viajes, por lo tanto | |
$viajes = $chofer->viajes; //En la variable $viajes, vos tenes todos los viajes de ese chofer |
It seems there is some problems between Vagrant 1.6.2 and VirtualBox 4.3.12 (the latest at the time or writing this),
switching back to VirutalBox 4.3.6 or VirtualBox 4.3.8 seems to eliminate the problem.
update 1: Try both Vagrant 1.6.2 and VirtualBox 4.3.12 on Mac and they seem to work fine!
update 2: You need to enable Virtual Machine option in your BIOS to make VirtualBox work as expected. Saw someone mention about this in Laravel forum about this and it is true.
Also, Vagrant version should be 1.6.2.
It seems there is some problems between Vagrant 1.6.2 and VirtualBox 4.3.12 (the latest at the time or writing this),
switching back to VirutalBox 4.3.6 or VirtualBox 4.3.8 seems to eliminate the problem.
update 1: Try both Vagrant 1.6.2 and VirtualBox 4.3.12 on Mac and they seem to work fine!
update 2: You need to enable Virtual Machine option in your BIOS to make VirtualBox work as expected. Saw someone mention about this in Laravel forum about this and it is true.
Also, Vagrant version should be 1.6.2.
-- | |
-- this sql structure is for knowledgebase or educational only. | |
-- please do this on your localhost first before ypu test on your server | |
-- | |
-- @author : awan | |
-- @author @link http://www.nawa.me | |
-- | |
-- github : https://github.com/aufa/ | |
-- | |
-- @description this sql is for importing the MaxminD GeoLite Country to mysql data |