DEV Community

Juraj Chovan
Juraj Chovan

Posted on

1

Vytvorenie kostry aplikácie v Laravel framework (ver.9)

V nasledujúcom postupe je ukázané ako si vytvoriť kostru (resp.úplne najzákladnejšiu) aplikáciu vo framework-u Laravel (vo verzii 9).

Vytvorím si kostru aplikácie v Laravel, príkazom:

composer create-project laravel/laravel NazovLaravelAplikacie
Enter fullscreen mode Exit fullscreen mode

čím je vytvorený podadresár "NazovLaravelAplikacie" v adresári, z ktorého som spustil tento príkaz, a v ňom je vytvorená potrebná štruktúra súborov Laravel projektu:

Image description
V tomto adresári, kde mám vytvorenú túto základnú (prázdnu) Laravel aplikáciu, spustiť príkaz na štart developovacieho servra:

php artisan serve
Enter fullscreen mode Exit fullscreen mode

Image description

A v prehliadači si teraz spustiť URL:

http://127.0.0.1:8000
Enter fullscreen mode Exit fullscreen mode

a zobrazí sa základná Laravel aplikácia:

Image description

dole, v aplikácii vidím použitú verziu framework-u Laravel (ver.9.7.0) a tiež verziu PHP.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay