Sunday, April 9, 2023

[phpsandbox][laravel][web] quick setup laravel bootstrap web service

 .

(0) Create a phpsandbox account

Surf to https://phpsandbox.io

Create an account e.g. using Google account. 


(1) Create PHP Laravel Project

Select Laravel version e.g. Laravel 8

Type a name e.g. lara8


(2) Create Bootstrap HTML Page

Edit web.php

<?php


use Illuminate\Support\Facades\Route;


/*

|--------------------------------------------------------------------------

| Web Routes

|--------------------------------------------------------------------------

|

| Here is where you can register web routes for your application. These

| routes are loaded by the RouteServiceProvider within a group which

| contains the "web" middleware group. Now create something great!

|

*/


Route::get('/', function () {

    return view('start');

});


Add other files (html,jss,js) in public folder.

Link to the files using relative path e.g.

    <script type="text/javascript" src="./js/app_nav.js"></script>

    <script src="./js/app_quiz.js"></script>







.

No comments:

Post a Comment