Interview
Title | Code |
---|---|
|
php artisan package:discover --ansi output list Discovered Package: facade/ignition Discovered Package: fideloper/proxy Discovered Package: fruitcake/laravel-cors Discovered Package: laravel/tinker Discovered Package: laravel/ui Discovered Package: nesbot/carbon Discovered Package: nunomaduro/collision Package manifest generated successfully. Remove/uninstall package Syntax: composer remove <package> Example: composer remove laravel/tinker |
|
Understanding of key design principles (SOLID, DRY, KISS etc). Kiss : Keep it simple, stupid (KISS) principle DRY : Don’t repeat yourself (DRY) principle SOLID S => Single Responsibility Principle O => Open-Closed Principle L => Liskov Substitution Principle I => Interface Segregation Principle D => Dependency Inversion Principle |
|
https://www.youtube.com/watch?v=fYNAi2oZ9y8&list=PLVWmHBgSb-u8slYKd7B1dM4HpGwRX6B1X&ab_channel=ProgrammingwithCodeSteps |
|
php artisan make:test UserTest php artisan make:test ExampleTest --unit location: tests/[Unit, Feature]/ExampleTest.php public function test_example(){ AAA // Arrange // Act // Assert } Run all php artisan test Run singel php artisan test --filter studentTest |
|
Synchronous PHP refers to the traditional way PHP applications execute code: synchronously, or in a blocking manner. In synchronous PHP, tasks are executed sequentially, meaning that each task must finish before the next one starts. Index $_COOKIE $_ENV $_FILES $_GET $_POST $_REQUEST $_SERVER $argc $argv $HTTP_RAW_POST_DATA $php_errormsg $this __call() Method __callStatic() method __clone() method __get() method __invoke() method __isset() method __serialize() method __set() method __set_state() method __sleep() method |
|
The following method names are considered magical: __construct(), __destruct(), __call(), __callStatic(), __get(), __set(), __isset(), __unset(), __sleep(), __wakeup(), __serialize(), __unserialize(), __toString(), __invoke(), __set_state(), __clone(), and __debugInfo(). |
|
What are the 5 elements of a job description? Job Description Components. A job description contains the following components: job title, job purpose, job duties and responsibilities, required qualifications, preferred qualifications, and working conditions. |
|
1. Entry Point (Public/index.php) public/index.php 2. Application Bootstrapping Laravel creates an instance of the application (service container). 3. Service Providers Registration Laravel registers Service Providers defined in config/app.php. 4. Request Handling (Kernel@handle) This is where the HTTP lifecycle starts. 5. Middleware Processing global middleware stack (defined in app/Http/Kernel.php). 6. Route Resolution routes/web.php or routes/api.php. 7. Controller/Route Action Execution 8. Response Preparation Illuminate\Http\Response). 9. Response Sent to Browser 10. Termination (Kernel@terminate) |
|
1. Use Eloquent ORM or Query Builder. 2. Always bind parameters (never concatenate raw inputs). 3. Validate and sanitize user inputs. 4. Use Laravel’s mass assignment protection ($fillable or $guarded). |