Using Laravel 4 package on Laravel 3 - laravel

I would like to use FbF/Laravel-Blog package which is for Laravel 4 on my site that is made on Laravel 3. Updating the site from Laravel 3 to Laravel 4 is not an option. The site installed manually not by using composer.
I tried to install the package manually and the first issue was with routes which I believe are using some Laravel 4 specific format.
I would just like to know if its realistic idea to use Laravel 4 package on top of Laravel 3 and how much porting work could be expected?

Laravel 3 bundles and Laravel 4 composer packages are entirely different animals.
You need to dig deep into the Laravel 4 package and rewrite it to the Laravel 3 specification. Needs considerable effort as you need to make sure you understand developing packages for both technologies.

Related

How to use Bootstrape in breeze in laravel 9 and vite

I want to make a project in Laravel 9 using breeze, but i can not see any way to include bootstrap in my project. there are some ways like jetstrap package, but it replaces complete vue system with blade files, which i dont want to do.
Please can you tell me a simple way to use bootstrap with breeze (laravel 9 + vite)
i am expecting a good solution for my problem.
Breeze is made with tailwind not Bootstrap.
If u want an auth/login with bootstrap u can use laravel/ui
https://github.com/laravel/ui

how to connect two projects Laravel 4.2 and laravel 5.5?

i have a laravel 4.2 project that i want to connect it to laravel 5.5 project
Q1) how to login in the first and and authenticated to the second to so i don't have to login to the second
Q2)how to connect them to the same DB
Q3)let's say i'm in page X in laravel 4.2 and i want to direct it to Y in laravel 5.5 where i should write the route in laravel 4.2 or in 5.5 ?
at the end both of the projects are going to be on the same server and have the same domain if that is going to be helpful
Q1) how to login in the first and and authenticated to the second to so i don't have to login to the second
if the 2 webapp are in the same domain, it should not be an issue
especially if they use the same database.
Q2)how to connect them to the same DB
just use the same credentials and save it on each env file.
Q3)let's say i'm in page X in laravel 4.2 and i want to direct it to Y in laravel 5.5 where i should write the route in laravel 4.2 or in 5.5 ?
you can use the function route instead use the manual routing like
to('somepage-on-theother-laravel') this is a tedious work. So i want
to ask if why are you using the 2 webapp in the same domain instead of
just using 1 webapp framework. Im thinking that this laravel 4.2 is
the existing one and you're create a new one and you want to use the
laravel 5.5 right?
This is easy to do, just put both applications on the same server and link them using the same credentials in the .ENV file, don't forget you will also need to create Models in both apps so that both apps can use the tables.
As for the routes, you would need to add the routes & functions that can be called in each individual app.
So if the user clicks the URL for /link-to-4.2 you should have a route in 4.2:
Route::get('/link-to-4.2', 'index#controller');
and then in your 5.5 you should have a route for any URLs that direct to anything there. i.e: /link-to-5.5
Route::get('/link-to-5.5', 'index#controller');
this all being said, what is the justification for using 2 apps? I think there could be a number of security issues that might cause headaches, this will also likely be a real nightmare to manage moving forward.
I would strongely suggest that you just upgrade the 4.2 app to be 5.5.

Why Laravel 5.1 removed the default authentication views?

I am new to Laravel and was just testing the authentication part of Laravel 5.1. And I got "View [auth.login] not found." error when I was accessing "/auth/login". It looks like the authentication view is not there as it is supposed to be.
How can I get it back? Should I try 5.0 instead? Thanks.
Since Laravel 5 auth views, assets and routes was removed. The arrival
of version 5.1 has seen the disappearance of these items after many
discussions ...
when you install laravel 5.1 you will only get the home page (welcome.blade.php). In order to get authentication stuff back install this package :
Scafold
Laravel 5.1 is a LTS release which means a long term support, bug fixes for 2 years and security fixes for 3 years ... so it's recommended to use 5.1 instead of 5.

Upgrade to Laravel 5 or use 4

I am new to Laravel and I have started making an authentication system using Laravel 4. Now should I upgrade it to Laravel 5 as there are a lot of new features or should I continue using Laravel 4?
I would say upgrade right now. You might end up upgrading later or continue to write code for things that laravel 5 provides out of box. Just imagine upgrading at a later stage when there are other things to break as well.

Adding Foundation 5 to Laravel 4

I have been looking into Foundation 5 and would like to implement it in a project I have been building with Laravel 4. Would I be able to use Composer to add Foundation to Laravel or would the two not function properly? Or would there be another way to combine the two? I'm still new to Laravel and am very new to Foundation so any insight on this would be greatly appreciated! Thanks!
Yeah, you can use Foundation 5 and Laravel 4 together. Since Foundation is a front-end framework and Laravel is a back-end framework, I don't see any reasons for them not to function together. You don't need Composer to install Foundation for Laravel, but there seems to be some packages on http://packagist.org/ that you can pull via Composer.
There's a short tutorial here:http://roxinlabs.com/2014/01/integrate-laravel-and-foundation-css-framework/ explaining how to use Foundation 5 with Laravel 4.
You might also want to look into here, for some best practices and more info: Best practice for Laravel 4 + Zurb Foundation 5?

Resources