Access laravel 5.0 session values from drupal 7 - laravel-5

I am trying to get access laravel 5.0 session values for drupal 7.
I have put a value into laravel session using session(['test' => 'Hello']); or Session::put('test', 'abc');. And then how can I get this value from laravel session in drupal 7?

Related

Laravel 5.3 run on Centos 7 (cpanel) with cloudflare. The post form is not submitted to laravel project code

I had experience in setting up linux ubuntu server with apache2. the laravel project is run successfully and everything works accordingly. the same code I applied in centos apache2 and it failed.
eg:
simple login post form using html laravel blade is not submited to the backend laravel code when the button is clicked.
no idea what is going on.
it just redirects to the same login page even the correct crediential is entered correctly.
according to the networking showing in google chorme debugging tools.
The Laravel project is within this directory
/home/abccom/public_html/abc/public
laravel 5.3
Centos 7
Apache/2.4.46 (cPanel)
Cloudflare
anyone can help??

How can i access laravel session using codeigniter 3?

I have application built using codeigniter 3, it is a module inside a laravel 8 framework, the laravel framework holds the login and register module, then when a user logged in, it will redirect to my module, but when i print native php $_SESSION it does not return any session from laravel.
I have changed the session configuration of laravel inside config/session then 'domain' => '.mydomain.com' but still no session is printed.
I tried to print $_COOKIE and it display ci_session and laravel_session ID.
PS: server Centos 7

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.

How to use core php session value in laravel framework?

There are 2 projects:
Built in core php.[main project]
Built in laravel.
We are integrating laravel with php. In core php folder I am placing a laravel folder. In main project I am linking to laravel project by click on a particular link.
During login to the main project [core php], we are setting emailid into session.
I want that emailid session value in to laravel folders. how do I access that core php session value from laravel project folder.
Is it possible?
Example link click here
but still there is some issues in that as laravel not able to access session object data

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.

Resources