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:
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Expressive, intuitive database ORM.
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
Laravel is accessible, powerful, and provides tools required for large, robust applications.
Start with clone this repo.
https://github.com/9Alpha9/travel-web.git
Install via npm for add node-packages modules Tailwind Css.
> cd travel-web
npm install
Install via artisan for run laravel packages modules.
> locate to travel-web folder
composer install
mv .env.example .env
> create DB name birentcar_travel
> Migration database with run this command on your terminal
php artisan migrate
First of all locate to google services to app/Http/config/services.php and add this command.
'google' => [
'client_id' => env('GOOGLE_CLIENT_ID'),
'client_secret' => env('GOOGLE_APP_SECRET'),
'redirect' => env('GOOGLE_REDIRECT'),
],
This is important, please add this code into your .env files for GOOGLE CLIENT and please register your account for add GOOGLE CLIENT ID.
GOOGLE_CLIENT_ID=your-client-ID
GOOGLE_APP_SECRET=google-secreat-key
GOOGLE_REDIRECT=http://127.0.0.1:8000/auth/callback
Note please register your Google API Token to Google Console Cloud
locate to .env and add this code.
MIDTRANS_IS_PRODUCTION=false
MIDTRANS_MERCHAT_ID=your-merchant-ID
MIDTRANS_CLIENT_KEY=SB-Mid-client-your-client-KEY
MIDTRANS_SERVER_KEY=SB-Mid-server-your-server-KEY
Note please register your Midtrans API to Midtrans Official Website for testing Midtrans you can visit Midtrans Mock Payment Testing
type this command into your terminal for generate Key into your Php projects.
php artisan key:generate
Note this command for generate APP_KEY on your .env
I'm using Sass for create a external Css for better styles, so u need Sass compiler extensions on your Code Editor for create a Css with Sass styles components. After you install the extensions, click Watch Sass and start styling component with Sass.
Finnal steps. Run the projects by type this command in to terminal.
> run Xampp or another Database engine
npm run watch
php artisan serve
Laravel Version | Php Version | Remix Icon |
---|---|---|
8.83 |
7.4.33 |
v3.5.0 |