#Unable to install inertiav2.0 and latest laravel version

80 messages · Page 1 of 1 (latest)

peak galleon
#

I am doing a portfolio using react-ts which i initliased with using vite for the project and i later wanted to add laravel but found out i would have to use inertia but when i try to download it from composer it i stuck to v.0.4.5 and wont let me upgrade and same with laravel i use the installer but its stuck on version 5.14.1 what can I do?

vague urchin
#

Try installing them together
composer require laravel/framework inertiajs/inertia-laravel --with-all-dependencies

teal sorrel
#

he seems like adding the dependencies(laravel and inertia) into an existing project.

vague urchin
#

Haha, yea that's probly a better idea ^ Thanks @teal sorrel

peak galleon
#

thats not the main problem though

#

its not letting me download the latest version of inertia

#

and laravel

teal sorrel
#

laravel/framework is just one of the core dependencies, not the full application.

teal sorrel
#

you can use vite...

peak galleon
#

i haven’t even been able to download laravel

#

v11

teal sorrel
#

lets me explain this way

#

So, you are already creating a React-TS project, and now you are trying to install Next.js. Instead of creating a fresh Next.js project, you are installing one of its dependencies into the current project, which is wrong

peak galleon
#

just normal react with ts

#

and ive just delete my whole project

#

ive been trying to install lavarel from cmd but its still only downloading v5

#

like 20 times today

#

no progress

teal sorrel
# peak galleon im not using next js

I think there's been a misunderstanding. I'm not saying you're currently using Next.js - I was just using that as an example to explain the situation.

peak galleon
#

oh

#

WAIT

#

FINALY

teal sorrel
# peak galleon

the highlighted message saying you are missing the extensions, zip and unzip

peak galleon
#

Ok so

#

how do i correctly make the project with vite

#

so i can have laraverl on backend+react-ts on frontend

#

cuz i thoguth u could just add it throguh terminal

teal sorrel
#

how do i correctly make the project with vite
I don't get it. The Laravel ship with vite by defaul

so i can have laraverl on backend+react-ts on frontend
same project? or different? you could have begin with the react-starter-kit which should be shown during the installation progress

peak galleon
#

i want to start from scratch

#

im already used to vite to i just wanna use that as my go for initialising the project if thats possible

teal sorrel
#

you mean those create project command, e.g: npm create vite@latest?

peak galleon
#

what abt the laravel/intertia

#

i already npm installed intertiajs

#

but thats not enough right?

peak galleon
teal sorrel
peak galleon
#

I thought php was bad programming language until i just took a small glimpse of the laravel docs which had easy security implementation features but im not sure if inertia is laravel

teal sorrel
#

or you could just have separate projects

  • frontend: react-ts
  • backend: laravel
peak galleon
teal sorrel
peak galleon
#

so inertia is laravel?

#

that means all the authorisation authentication password etc from the laravel docs can be used in inertia?

teal sorrel
#

Inertia has no client-side routing, nor does it require an API. Simply build controllers and page views like you've always done! Inertia works great with any backend framework, but it's fine-tuned for Laravel.
read the Introduction?

peak galleon
#

uh

#

so its not laravel?

#

i really wanted to add all of these

#

btw i really appreciate ur help

teal sorrel
peak galleon
#

ive only used libraries so far

teal sorrel
#

you should done everything, e.g: authentication, authorization, and etc. at both ends(front and back). its not like everything will work magically
(that explains it)

#

atm, you just jump into this because people said you should use Laravel

peak galleon
#

Your implementation should use one or a combination of the server-side techniques
covered in our module i.e. vanilla PHP, object-oriented PHP, Laravel framework and
Node.JS. You are free to use any front-end technologies. You need to implement the
functional requirements listed below. Your implementation should also consider some

teal sorrel
#

but you didn't do any research or watching any tutorial about it

peak galleon
#

Security Measures (20 marks)
At least 5 security measures should be implemented in your website development.
Some examples:
• Authentication
• Authorisation
• Form validation
• Handle injections (SQL/HTML)
• Hash password
• Cross-Site Request Forgery

peak galleon
#

cuz when i brought it up to someone they said the following

#

$polarnix = polarnix($polarnix); — 23:14
use laravel you can implement all of that easily

#

$polarnix = polarnix($polarnix); — 23:15
use laravel with blade/livewire frontend you get @csrf directive and easy forms
NabzPlays — 23:16
u sure it will be easy peez?
laravel sounds useless in the real world
$polarnix = polarnix($polarnix); — 23:16
what an ignorant thing to say

teal sorrel
peak galleon
#

$polarnix = polarnix($polarnix); — 25/03/2025 23:34
https://inertiajs.com/
man do some research
instead of getting trolled by everyone
laravel is backend, you can use any frontend via intertia

teal sorrel
#

also you haven't integrate with any API before, so I believe you should learn things like cookie, session authentication.

peak galleon
#

the last sentance can you just explain to me what he means?

teal sorrel
#

laravel is backend, you can use any frontend via intertia
its not wrong tho, inertia support a lot of frontend library:

  • svelte
  • react
  • vue
  • others
peak galleon
#

and if what the laravel docs show for security can be used

teal sorrel
#

Everything

#

I am just going to pass the ongoing questions. You should have done your own research for that.

peak galleon
#

@teal sorrel I think I've understood everything now so I MUST use composer first to create laravel backend as it needs to be the first then inertiajs can be installed and after that i can use vite to make the project and as for everything else regarding if i can use all the laravel documents it looks like i can c

teal sorrel
#

vite to make the project
i don't understand what you mean. just watch the link I sent earlier