by
265 8
0
3
363
0
Top 5% !
Popular
Specified
Created
Modified Nov 15, 2017

Published on:

No tags for this snippet yet.
Languagecsharp
LanguagePHP
SourceGitHub
SourceMyGists

Using Eloquent Outside of Laravel for Other PHP Apps. Source: https://www.cloudways.com/blog/eloquent-illuminate-in-php-without-laravel/

Using Eloquent Outside of Laravel for Other PHP Apps. Source: https://www.cloudways.com/blog/eloquent-illuminate-in-php-without-laravel/: 
bootstrap.php
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/3065837/Using-Eloquent-Outside-of-Laravel-for-Ot?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
<?php require "vendor/autoload.php"; use Illuminate\Database\Capsule\Manager as Capsule; $capsule = new Capsule; $capsule->addConnection([    "driver" => "mysql",    "host" =>"127.0.0.1",    "database" => "acl",    "username" => "root",    "password" => "" ]); $capsule->setAsGlobal(); $capsule->bootEloquent();
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus