Skip to content

LumiNovryM/website-kelas-xii-pplg1

Repository files navigation

Laravel Logo

Build Status Total Downloads Latest Stable Version License

About Laravel

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:

Laravel is accessible, powerful, and provides tools required for large, robust applications.

Learning Laravel

Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.

You may also try the Laravel Bootcamp, where you will be guided through building a modern Laravel application from scratch.

If you don't feel like reading, Laracasts can help. Laracasts contains over 2000 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.

Laravel Sponsors

We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel Patreon page.

Premium Partners

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via taylor@laravel.com. All security vulnerabilities will be promptly addressed.

License

The Laravel framework is open-sourced software licensed under the MIT license.

Bulding

Pertama

git clone https://github.com/LumiNovryM/Laravel-Template.git
composer install
composer update
cp .env.example .env
php artisan key:generate

Kedua

cd Laravel-Template 
code .

Ketiga

Buat file baru didalam file "public" dengan format huruf kecil tanpa spasi dan isi nama file dengan namamu sendiri
Kemudian masukkan semua asset mu kedalam file tadi yang sudah dibuat

Keempat

kemudian masuk kedalam file "resources > views" dan masukkan file index kalian dan ubah nama file tersebut dengan format "nama_depan.blade.php", contoh : "lumi.blade.php"

Kelima

Jika file index sudah dimasukkan dan sudah direname sesuai format maka jangan lupa ganti path style atau image yang ada didalam file index sesuai dengan path yang sudah kalian masukkan difolder public pada step ketiga

Keenam

Buat Controller baru, ketikkan perintah berikut diterminal VS Code kalian
php artisan make:controller nama_file 
contoh : php artisan make:controller Lumi

Ketujuh

Buat perintah berikut pada controller yang tadi sudah kalian buat
class Lumi extends Controller
{
    public function Index() {
        return view('nama_file_index');
    }
}

Kedelapan

Masuk kedalam folder "route" dan buat perintah berikut
Route::get('/nama_file_index', [nama_controller_yang_tadi_di_dibuat::class, 'nama_function_pada_file_controller']);

Kesembilan

Terakhir buat tag <a> dan isi pathnya seusai dengan nama file html yang sudah dibuat didalam file index.blade.php pada "resources > views"
Contoh: 
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>List</title>
</head>
<body>
    <h1>Portfolio List</h1>
    <a href="/lumi">Lumi Novry M</a>
</body>
</html>