Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

Inertia JS

use InertiaInertia;

class EventsController extends Controller
{
    public function show(Event $event)
    {
        return Inertia::render('Event/Show', [
            'event' => $event->only(
                'id',
                'title',
                'start_date',
                'description'
            ),
        ]);
    }
}
Comment

inertia.js

class UsersController
{
    public function index()
    {
        $users = User::active()
            ->orderByName()
            ->get()
            ->only('id', 'name', 'email');

        return Inertia::render('Users', [
            'users' => $users
        ]);
    }
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: array sort 
Javascript :: what is slot in vue.js 
Javascript :: useselector 
Javascript :: Javascript Scrape content from a website source code 
Javascript :: input variable in string javascript 
Javascript :: react-scripts not found 
Javascript :: functions javascript 
Javascript :: vuejs accessing props from data 
Javascript :: object set js 
Javascript :: material-ui add icon to switch when on 
Javascript :: what is react easy emoji 
Javascript :: async storage set 
Javascript :: get element by id angular 
Javascript :: how to remove an item from an object in javascript 
Javascript :: function in javascript 
Javascript :: convert excel file to json using node js 
Javascript :: how to check if a user is logged in javascript 
Javascript :: running webpack application on production server 
Javascript :: check cookie existence js 
Javascript :: javascript wait for async function to finish 
Javascript :: javascript callback 
Javascript :: random password generator javascript 
Javascript :: html get color gradient percentage 
Javascript :: react native stopwatch 
Javascript :: javascript prompt on window close 
Javascript :: delete div based on select 
Javascript :: display array javascript 
Javascript :: he valid characters are defined in rfc 7230 and rfc 3986 
Javascript :: is js dead 
Javascript :: javascript json error html 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =