Skip to content

Latest commit

 

History

27 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Logo

Build Status Total Downloads Latest Stable Version License

About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:

Laravel is accessible, powerful, and provides tools required for large, robust applications.

Learning Laravel

Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.

You may also try the Laravel Bootcamp, where you will be guided through building a modern Laravel application from scratch.

If you don't feel like reading, Laracasts can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.

Laravel Sponsors

We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel Partners program.

Premium Partners

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via taylor@laravel.com. All security vulnerabilities will be promptly addressed.

License

The Laravel framework is open-sourced software licensed under the MIT license.

Summary of Different Ways to Use usePage() in react inertia js Feature Code Example Get page data const { props } = usePage(); Get current path const { url } = usePage(); Get component name const { component } = usePage(); Get shared data const { props } = usePage(); const { auth } = props; Conditional rendering based on path {url === '/dashboard' &&

Welcome!

}

Scenario How to Access Public folder (/public/img/example.jpg) Laravel asset helper asset('img/example.jpg') Passed from Laravel to React usePage().props.imagePath Background Image (CSS) background-image: url('/img/example.jpg'); Storage folder (storage/app/public) Would you like help with image uploads or dynamic storage? 🚀

Use Case Method Directly access public files /img/logo.png Laravel asset helper (Blade) {{ asset('img/logo.png') }} Laravel asset helper (React) asset('img/logo.png') in usePage().props Background image in CSS background-image: url('/img/logo.png'); Get absolute path in Laravel public_path('img/logo.png') Access files from storage/app/public /storage/logo.png (after php artisan storage:link)

About

Laravel & react project for a Sydney mobile Technician

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages