Olamilekan

Olamilekan

Member Since 1 Week Ago

Experience Points
210
Total
Experience

4,790 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
0
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 1
210 XP
Feb
19
4 days ago
Activity icon

Replied to Page Unable To Inherit Master.blade.php CSS And JS

Do you have a twitter or any account, will really love to follow you on it

Activity icon

Replied to Page Unable To Inherit Master.blade.php CSS And JS

Lord!!!, words can't explain how much I appreciate, thank you very much sir.

Activity icon

Replied to Page Unable To Inherit Master.blade.php CSS And JS

i have some scripts in the header file and some in the script file

Those are the codes i got in both files above

Activity icon

Replied to Page Unable To Inherit Master.blade.php CSS And JS

contents of includes.header


<!DOCTYPE html>
<html lang="en">

<head>

  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="">
  <meta name="author" content="">

  <title>@yield('title')</title>

  <!-- Custom fonts for this template-->
  <link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
  <link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">
 
  <!-- Custom styles for this template-->
  <link href="css/sb-admin-2.min.css" rel="stylesheet">
  @yield('page-level-scripts-up')
</head>

Activity icon

Replied to Page Unable To Inherit Master.blade.php CSS And JS

contents of includes.scripts


<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>

<!-- Core plugin JavaScript-->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>

<!-- Custom scripts for all pages-->
<script src="js/sb-admin-2.min.js"></script>
@yield('page-level-scripts-down')

Activity icon

Replied to Page Unable To Inherit Master.blade.php CSS And JS

I have updated the reply please kindly take a look

Activity icon

Replied to Page Unable To Inherit Master.blade.php CSS And JS

The code is breaking up sorry please

Activity icon

Replied to Page Unable To Inherit Master.blade.php CSS And JS



@include('includes.header')

<body id="page-top">

  <!-- Page Wrapper -->
  <div id="wrapper">

    @include('includes.sidebar')

    <!-- Content Wrapper -->
    <div id="content-wrapper" class="d-flex flex-column">

      <!-- Main Content -->
      <div id="content">
        @include('includes.topbar')
        <!-- Begin Page Content -->
         <div class="container-fluid">

          <!-- Page Heading -->
          <div class="d-sm-flex align-items-center justify-content-between mb-4">
            <h1 class="h3 mb-0 text-gray-800">@yield('page-name')</h1>
            {{-- <a href="#" class="d-none d-sm-inline-block btn btn-sm btn-primary shadow-sm"><i class="fas fa-download fa-sm text-white-50"></i> Generate Report</a> --}}
          </div>
           <!-- Divider -->
            <hr class="sidebar-divider">
          @yield('stats')
          
          @yield('main-content')
        

        </div>
        <!-- /.container-fluid -->

      </div>
      <!-- End of Main Content -->
  @include('includes.footer')

</div>
<!-- End of Content Wrapper -->

</div>
<!-- End of Page Wrapper -->

<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded" href="#page-top">
<i class="fas fa-angle-up"></i>
</a>

<!-- Logout Modal-->
<div class="modal fade" id="logoutModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
  <div class="modal-content">
    <div class="modal-header">
      <h5 class="modal-title" id="exampleModalLabel">Ready to Leave?</h5>
      <button class="close" type="button" data-dismiss="modal" aria-label="Close">
        <span aria-hidden="true">×</span>
      </button>
    </div>
    <div class="modal-body">Select "Logout" below if you are ready to end your current session.</div>
    <div class="modal-footer">
      <button class="btn btn-secondary" type="button" data-dismiss="modal">Cancel</button>
      <a class="btn btn-primary" href="{{ route('logout') }}"
      onclick="event.preventDefault();
                    document.getElementById('logout-form').submit();"> {{ __('Logout') }}</a>

        <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
          @csrf
        </form>
    </div>
  </div>
</div>
</div>

@include('includes.scripts')
</body>

</html>```
Activity icon

Replied to Page Unable To Inherit Master.blade.php CSS And JS

It works fine all other instances, I have include all css and js files in the master.blade.php.

The only time the intended file does not load the css and jss files is when I am trying to load it with

public function show ($id) { return view(adminpages.employeeDetails); }

the code above is in my AdminController,am using the resource model "show" to get the profile

but if i do this

Route::get('/employeeDetails', public function () {

return view(adminpages.employeeDetails);

})

in my web.php file, the page loads with the css

Activity icon

Started a new Conversation Page Unable To Inherit Master.blade.php CSS And JS

Good day to you all, I having a littled issue, I have a table that has button for accessing Employee Profile details.

It is not loading the master.blade.php css and js, but it loads is content, while other pages are working fine.

i have a page manageEmployee that displays Employees details in a table and but when i click on the view corresponding to the employee, the page does not inherit the master.blade.php stylings

Please what have done wrong ?

Feb
18
5 days ago
Activity icon

Replied to Laravel Auth Error

Thank you very much for the reply, I was able to fix it, though did few tweaks. Gracias and God continue to increase you in knowledge

Activity icon

Started a new Conversation Laravel Auth Error

Hello, Good day, I have differentiated the side panel to be shown to the admin or employee by using the if statement.

But when i enter "127.0.0.1:8000/password/reset" or "127.0.0.1:8000/register" in my url. I get this error below

Trying to get property 'role' of non-object (View: /home/harmlessprince/Desktop/Laravel Projects/payrollsystem/resources/views/includes/sidebar.blade.php)

The role of the user determines the sidebar shown to the user i.e

@if (Auth::user()->role == 'admin'){ //Display this }else {

//Display these } How can i rectify this.

NOTE: If i do this (Auth::routes(['register' => false]);) for /register , error turns to 404 page, which what should be the normal output.

I am hoping there is a better way to deal with this error cause i might need the forget password link

Feb
14
1 week ago
Activity icon

Replied to How To Prevent Showing Login Page After User Logged And Hit Browser Back Button

Because of how much this just saved my day, Thank you very much for this