Created
June 5, 2018 22:01
-
-
Save DeVoresyah/5cf49a9ae86cff3a27785d016561d3dc to your computer and use it in GitHub Desktop.
Call to undefined method Illuminate\View\Compilers\BladeCompiler::component()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="icon" type="image/png" sizes="16x16" href="img/adsafe.png"> | |
<meta name="theme-color" content="#ffffff"> | |
{{-- CSS --}} | |
<link rel="stylesheet" href="{{ asset('assets/css/style.css') }}"> | |
<link rel="stylesheet" href="{{ asset('assets/css/responsive.css') }}"> | |
<link href="https://unpkg.com/ionicons@4.1.2/dist/css/ionicons.min.css" rel="stylesheet"> | |
{{-- JS --}} | |
<script src="js/fontawesome-all.min.js"></script> | |
<script type="text/javascript" src="{{ asset('assets/js/jquery.js') }}"></script> | |
<script type="text/javascript" src="{{ asset('assets/js/fontawesome-all.min.js') }}"></script> | |
<script type="text/javascript" src="{{ asset('assets/js/bootstrap.min.js') }}"></script> | |
<script type="text/javascript" src="{{ asset('assets/js/bootstrap-select.min.js') }}"></script> | |
<script type="text/javascript" src="{{ asset('assets/js/jquery.validate.min.js') }}"></script> | |
<script type="text/javascript" src="{{ asset('assets/js/owl.carousel.min.js') }}"></script> | |
<script type="text/javascript" src="{{ asset('assets/js/isotope.js') }}"></script> | |
<script type="text/javascript" src="{{ asset('assets/js/jquery.magnific-popup.min.js') }}"></script> | |
<script type="text/javascript" src="{{ asset('assets/js/js/waypoints.min.js') }}"></script> | |
<script type="text/javascript" src="{{ asset('assets/js/js/jquery.counterup.min.js') }}"></script> | |
<script type="text/javascript" src="{{ asset('assets/js/wow.min.js') }}"></script> | |
<title>@yield('title') - @yield('web_name')</title> | |
</head> | |
<body> | |
@footer([ | |
'logo' => [ | |
'img' => 'img/logo.png', | |
'alt' => 'Belajar Laravel' | |
], | |
'menu' => [ | |
['name' => 'Home', 'link' => '/'] | |
], | |
'social' => [ | |
'facebook' => 'https://facebook.com/DeVoresyah', | |
'twitter' => 'https://twitter.com/DeVoresyah', | |
'linkedin' => 'https://linkedin.com/in/devoresyah' | |
] | |
]) | |
@endfooter | |
<div class="scroll-to-top scroll-to-target" data-target="html"><span class="fas fa-arrow-up"></span></div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use Illuminate\Support\Facades\Blade; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
/** | |
* Bootstrap any application services. | |
* | |
* @return void | |
*/ | |
public function boot() | |
{ | |
Blade::component('components.footer', 'footer'); | |
} | |
/** | |
* Register any application services. | |
* | |
* @return void | |
*/ | |
public function register() | |
{ | |
// | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@extends('layouts.app') | |
@section('title', 'Hello World!') | |
@section('web_name', 'Belajar Laravel') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment