Category: Laravel

What is Software Testing Life Cycle (STLC)?

Software Testing Life Cycle (STLC) is a sequence of different activities performed during the software testing process.

Phases of STLC:

  1. Requirement Analysis:
    Requirement Analysis is the first step of Software Testing Life Cycle (STLC). In this phase quality assurance team understands the requirements like what is to be tested. If anything is missing or not understandable then quality assurance team meets with the stakeholders to better understand the detail knowledge of requirement.
  2. Test Planning:
    Test Planning is most efficient phase of software testing life cycle where all testing plans are defined. In this phase manager of the testing team calculates estimated effort and cost for the testing work. This phase gets started once the requirement gathering phase is completed.
  3. Test Case Development:
    The test case development phase gets started once the test planning phase is completed. In this phase testing team note down the detailed test cases. Testing team also prepare the required test data for the testing. When the test cases are prepared then they are reviewed by quality assurance team.
  4. Test Environment Setup:
    Test environment setup is the vital part of the STLC. Basically test environment decides the conditions on which software is tested. This is independent activity and can be started along with test case development. In this process the testing team is not involved. either the developer or the customer creates the testing environment.
  5. Test Execution:
    After the test case development and test environment setup test execution phase gets started. In this phase testing team start executing test cases based on prepared test cases in the earlier step.
  6. Test Closure:
    This is the last stage of STLC in which the process of testing is analyzed.

What is the server requirements for Laravel 8+?

The Laravel framework has a few system requirements. You can find the list of server requirements below

  • PHP >= 7.2.5
  • BCMath PHP Extension
  • Ctype PHP Extension
  • Fileinfo PHP extension
  • JSON PHP Extension
  • Mbstring PHP Extension
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension

How do I insert sample user into Laravel MySQL?

  1. Execute the following command to create UsersTableSeeder.php file.
    php artisan make:seeder UsersTableSeeder
  2. Then open UsersTableSeeder.php file and update it with the user login details.
    <?php
    namespace Database\Seeders;
    use Illuminate\Database\Seeder;
    use DB;
    class UsersTablesSeeder extends Seeder
    {
        /**
         * Run the database seeds.
         *
         * @return void
         */
        public function run()
        {
            DB::table(‘users’)->insert([
                                                 ‘name’ => ‘admin’,
                                                 ’email’ => ‘admin@email.com’,
                                                 ‘password’ => bcrypt(‘Admin@123’)
                                  ]);
        }
    }
    ?>
  3. Execute the following command to execute the seed file and create users to the database.
    php artisan db:seed –class=”UsersTablesSeeder

If you have any doubts comment here.

What is the server requirements for Laravel 7+?

The Laravel framework has a few system requirements. You can find the list of server requirements below

  • PHP >= 7.2.5
  • BCMath PHP Extension
  • Ctype PHP Extension
  • Fileinfo PHP extension
  • JSON PHP Extension
  • Mbstring PHP Extension
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension