Laravel inertia base url
Goto To resources / view / app.blade.php file and add this code <script> window.base_url = "{{ URL::To('/')}}" </script> Goto any Inertia page and paste…
Goto To resources / view / app.blade.php file and add this code <script> window.base_url = "{{ URL::To('/')}}" </script> Goto any Inertia page and paste…
goto .env and change APP_URL = https://abc.com to live server url. and same give ASSET_URL = https://abc.com/public and run this command npm run build
A. Fileupload.jsx import Navbar from "@/Layouts/Navbar"; import { Head, Link, router } from "@inertiajs/react"; import React from "react"; import { useState, useRef } from 'react' function Fileupload(props) { const…
A. Edit.jsx: import Navbar from "@/Layouts/Navbar"; import { Head, Link, router } from "@inertiajs/react"; import React from "react"; import { useState } from 'react' function Edit(props) { const {id,…
A. Create.jsx import Navbar from "@/Layouts/Navbar"; import { Head, Link, router } from "@inertiajs/react"; import React from "react"; import { useState } from 'react' function Create({errors}) { const [values,…