Step1:Make a folder named “components” in your project root folder. step2: write your custom component Details…
Category: PHP
This my new initiative to learn PHP-one of the most popular web scripting language.
Create a Simple to Complex Widget in Yii
First create a folder named “components” in the project root directory. Now create one class Details…
Upload file in laravel
#view Select image to upload: #disable CSRF token @Kernel.php #route use Illuminate\Support\Facades\Input; or aliases array Details…
Working with Database in Yii2
Create a database yiibasic #database
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
CREATE TABLE IF NOT EXISTS `employees` ( `Id` int(11) NOT NULL, `first_name` text NOT NULL, `last_name` text NOT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `employees` -- INSERT INTO `employees` (`Id`, `first_name`, `last_name`) VALUES (1, 'aaaa', 'cccc'), (2, 'ssss', 'cccc'); select * from employees; |
create a model
Role Based Authentication in Yii
http://www.javatpoint.com/what-is-yii composer global require “fxp/composer-asset-plugin:^1.2.0” yii migrate In case of yii2-app-base template, from which I Details…
Dependency Injection with laravel
This i called table data gateway pattern where a tables responsibility is handled by a Details…
PHP debug with xdebug with laravel
01.Just download the extension from https://xdebug.org and if you are not sure which .dll to Details…
Random with Laravel
*Command
1 |
php artisan make:command UserGeneratorCommand --command = userGeneratorCommand |
in UserGenerator in
1 |
protected $signature = 'userGeneratorCommand'; and in handle() $this->line('Welcome to the user generator.'); |
add app/Console/Kernel.php
1 2 3 4 5 |
protected $commands = [ // 'App\Console\Commands\QuizStart', 'App\Console\Commands\UserGeneratorCommand', ]; |
and run in console
1 |
php artisan userGeneratorCommand |
https://code.tutsplus.com/tutorials/your-one-stop-guide-to-laravel-commands–net-30349 Details…
Laravel 5.2 basic installation with XAMPP
hello laravel Some demo site may interest http://scriptunited.com/demo/metroskin/ To update LARAVEL 5.2 /install laravel 5.2 Details…