- Text Content Generator - http://www.lipsum.com
- Favicon Generator - http://tools.dynamicdrive.com/favicon
- Data Generator - https://mockaroo.com/
- Mobile Mockup Generator - https://mockuphone.com
- Logo Generator - https://www.logaster.com
- UUID Generator - https://www.uuidgenerator.net/
- Hash Generator - https://passwordsgenerator.net/sha256-hash-generator/
- Ultimate Code Generator - https://webcode.tools/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
composer install | |
Copy .env.example file to .env | |
Open your .env file and change the database conf | |
php artisan key:generate | |
php artisan migrate | |
php artisan serve |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$host = 'localhost'; | |
$user = 'root'; | |
$password = '123456'; | |
$dbname = 'pdoposts'; | |
// Set DSN | |
$dsn = 'mysql:host='. $host .';dbname='. $dbname; | |
// Create a PDO instance |
The following steps for heroku deployment of laravel found in the folloing link: https://devcenter.heroku.com/articles/getting-started-with-laravel
first create a larave project and add it to git then use the following commands:
login to heroku using :
heroku login
create app:
heroku create
check the following links for the useful packages in Laravel:
https://www.cloudways.com/blog/best-laravel-packages/
- barryvdh/laravel-debugbar : Link
This is a package to integrate PHP Debug Bar with Laravel - Socialite : Link
Socialite is a very popular package for handling social authentication with OAuth. It works with Facebook, Twitter, Github, Bitbucket, and a few others. - LARAVEL-MODULES : Link
Laravel package which was created to manage your large Laravel app using modules. - arrilot/laravel-widgets : Link
Generate and use widgets
one to one :
user can have profile or address
user has one profile:
add this in user model as:
public function profile()
{
return $this->hasOne(Profile::class);
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$host = 'localhost'; | |
$user = 'root'; | |
$password = '123456'; | |
$dbname = 'pdoposts'; | |
// Set DSN | |
$dsn = 'mysql:host='. $host .';dbname='. $dbname; | |
// Create a PDO instance |
<?php
try {
$pdo = new PDO('mysql:host=localhost;dbname=test', 'root', '');
}catch( PDOException $e ){
die("couldn't connect ".$e->getMessage());//gives error message
}
$statement = $pdo->prepare('select * from todos');
OlderNewer