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?
#Unable to install inertiav2.0 and latest laravel version
80 messages · Page 1 of 1 (latest)
Try installing them together
composer require laravel/framework inertiajs/inertia-laravel --with-all-dependencies
he seems like adding the dependencies(laravel and inertia) into an existing project.
https://laravel.com/docs/12.x#creating-an-application
that not how it works. instead you should create a fresh new laravel project and select the react-starter-kit or configurate the inertia yourself
Haha, yea that's probly a better idea ^ Thanks @teal sorrel
what
thats not the main problem though
its not letting me download the latest version of inertia
and laravel
using react-ts which i initliased with using vite for the project and i later wanted to add laravel
you are trying to use Laravel, and the main problem is, thats not how you install the Laravel
laravel/framework is just one of the core dependencies, not the full application.
So i cant use vite?
you can use vite...
i dont get it though?
i haven’t even been able to download laravel
v11
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
im not using next js
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
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.
the highlighted message saying you are missing the extensions, zip and unzip
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
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
i deleted the project
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
you mean those create project command, e.g: npm create vite@latest?
that would only setup the react-ts
what abt the laravel/intertia
i already npm installed intertiajs
but thats not enough right?
select the react-starter-kit or configurate the inertia yourself
https://laravel.com/docs/12.x/frontend#using-react-or-vue
https://inertiajs.com/
ig imma configure myself is there any website which specifies how to do it? cuz this is for a portfolio i already had chose to use react-ts which i made the project with using vite but Im required to use a backend for security implementation and someone had said i should use laravel but apparently its not compatible and I would have to use intertia instead of laravel
https://inertiajs.com/
this? the docs shows you how to use it with react tho.
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
or you could just have separate projects
- frontend: react-ts
- backend: laravel
needs to be in same project
inertia is just a SPA wrapper specialized for Laravel
so inertia is laravel?
that means all the authorisation authentication password etc from the laravel docs can be used in inertia?
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?
uh
so its not laravel?
i really wanted to add all of these
btw i really appreciate ur help
have you integrate with any API before?
no
ive only used libraries so far
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
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
but you didn't do any research or watching any tutorial about it
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
yh that my bad
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
https://laracasts.com/series/30-days-to-learn-laravel-11
I believe you should watch the series to learn the basic first.
$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
also you haven't integrate with any API before, so I believe you should learn things like cookie, session authentication.
the last sentance can you just explain to me what he means?
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
and if what the laravel docs show for security can be used
Everything
I am just going to pass the ongoing questions. You should have done your own research for that.
@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
vite to make the project
i don't understand what you mean. just watch the link I sent earlier