CopyPastor

Detecting plagiarism made easy.

Score: 1.9754282804245644; Reported for: String similarity, Exact paragraph match Open both answers

Possible Plagiarism

Plagiarized on 2020-05-27
by Dilip Hirapara

Original Post

Original - Posted on 2015-07-03
by Umair Ahmed



            
Present in both answers; Present only in the new answer; Present only in the old answer;

**For PSR-4 Auto Loader Users (composer.json):**
Keep the migrations folder inside `classmap` array and do not include it inside psr-4 object under `autoload` head. As migrations' main class Migrator doesn't support namespacing. For example;
"autoload": { "classmap": [ "app/database/migrations" ], "psr-4": { "Acme\\controllers\\": "app/controllers" } }
Then run:
php artisan clear-compiled php artisan optimize:clear composer dump-autoload php artisan optimize
- first clear all compiled autoload files. - Second clear Laravel caches (optional) - Third autoloader for namespaced classes. - Fourth optimize various parts of your Laravel app and builds the autoloader for non-namespaced classes.
From this time onwards, you will not have to do this again and any new migrations will work correctly.
**For PSR-4 Auto Loader Users (composer.json):**
Keep the migrations folder inside `classmap` array and do not include it inside psr-4 object under `autoload` head. As migrations' main class Migrator doesn't support namespacing. For example;
"autoload": { "classmap": [ "app/database/migrations" ], "psr-4": { "Acme\\controllers\\": "app/controllers" } }
Then run:
php artisan clear-compiled php artisan optimize:clear composer dump-autoload php artisan optimize
- First one clears all compiled autoload files. - Second clears Laravel caches (optional) - Third builds the autoloader for namespaced classes. - Fourth optimizes various parts of your Laravel app and builds the autoloader for non-namespaced classes.
From this time on wards, you will not have to do this again and any new migrations will work correctly.

        
Present in both answers; Present only in the new answer; Present only in the old answer;