Support the ongoing development of Laravel.io →
Views Blade
Last updated 2 years ago.
0

It isn't possible to do server side - if you do really need to serve a different page you would need to pass the screen size to php with javascript (http://stackoverflow.com/questions/1504459/getting-the-screen-resolution-using-php)

My advice is do it on the client side with css, as you will run into all sorts of problems doing this server side - what if I just have a small window then maximise it for example?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.