F
F
fatedupi2017-03-22 16:18:14
Laravel
fatedupi, 2017-03-22 16:18:14

How to properly include js and css in laravel 5.4?

Hello!
I have the default layouts/app.blade.php installed after artisan make:auth
And I also created test.blade.php with this content:

@extends('layouts.app')

@section('content')
  Работает
@endsection

Tell me how to add your css and js files to test.blade.php?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Ukolov, 2017-03-22
@fatedupi

https://laravel.com/docs/5.4/blade#stacks

Y
Yahya, 2017-03-22
@gamma06

layouts/app.blade.php -> add here because for your test.blade.php it is "master" page layout

R
Rikcon, 2017-03-22
@Rikcon

If you want to add js / css from the controller, then you can use https://github.com/Stolz/Assets

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question