This project is part of the Platform-Based Application Development (ABP) course, focusing on Laravel framework implementation and best practices.
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
- Basic Laravel routing and controllers
- Database interactions using Laravel's Eloquent ORM
- Implementation of REST API endpoints
- Authentication and authorization systems
- Frontend integration using Blade templating
For learning more about Laravel and this project:
Ensure your system meets the following requirements:
- PHP: Version 8.2 to 8.4
- Composer: PHP dependency manager
For additional details, refer to the Laravel Server Requirements.
-
Install PHP, Composer, and Laravel Installer
- For Windows users, run this PowerShell command for quick setup:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://php.new/install/windows/8.4'))
- For other platforms, follow the official installation guides for PHP and Composer.
- For Windows users, run this PowerShell command for quick setup:
-
Clone the Repository
git clone https://github.com/filzarahma/W5_ABP.git cd W5_ABP -
Install Dependencies
composer install composer update
-
Environment Configuration
cp .env.example .env php artisan key:generate
- Update the
.envfile with your database credentials and other settings.
- Update the
-
Start Development Server
composer run dev
The application will be available at http://localhost:8000.
For advanced setup options and deployment configurations, consult the official Laravel Configuration Documentation.
This Week 5 ABP project implements basic Laravel concepts and includes the following components:
Route::get('/', function () {
return view('welcome');
});
Route::get('/lat1', [Lat1Controller::class, 'index']);
Route::get('/lat1/m2', [Lat1Controller::class, 'method2']);The controller implements two methods:
index(): Returns a simple view with name and originmethod2(): Returns a view with a table of student data
-
Basic View (
/resources/views/v_latihan1.blade.php)- Displays name and origin data
- Uses Blade templating syntax
-
Table View (
/resources/views/v_latihan2.blade.php)- Displays a table of students
- Implements Blade foreach loop
- Includes basic HTML structure with dynamic data
- Route definition and handling
- Controller implementation
- Blade template usage
- Data passing to views
- Basic table rendering
- PHP array manipulation
- Laravel Framework Team
- Course Instructors and Teaching Assistants