Fajar

Fajar

Member Since 1 Year Ago

Experience Points 1,340
Experience Level 1

3,660 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.

25 Jun
3 weeks ago

Fajar left a reply on Somthing Worng

problem solved i add blade custem blade thank for @aur

Fajar left a reply on Somthing Worng

hi @aurawindsurfing

I am sorry but foreach in use for looping

Fajar left a reply on Somthing Worng

It is my first code

in my controller

public function index(Series $series)
    {
        $user = auth()->user();

        return view('user.series.index', compact('series','user'));
    }

index.blade.php

@auth
            @hasStartedSeries($series)
                <h2 class="font-weight-bold text-muted">
                    {{round($user->getPerCompleteSeries($series))}}
                    % Completed
                </h2>
                <div class="mb-4">
                    <a href="{{ route('series.learning', $series->slug) }}" class="btn btn-outline-info mr-3" >
                        Continue Learning
                    </a>
                    @else
                    <a href="{{ route('series.learning', $series->slug) }}" class="btn btn-outline-info">
                        Start Learning
                    </a>
                </div>
            @endhasStartedSeries
 @endauth

in Learning.php

public function hasStartedSeries($series)
    {
        return $this->getNumCompleteLessonInSeries($series) > 0;
    }

Fajar left a reply on Somthing Worng

@iamine

To your opinion

public static function hasStartedSeries($series){
        return $this->getNumCompleteLessonInSeries($series) > 0;
}

i get messages like this

Using $this when not in object context

and second opinition

i get this

``php $learning = new Learning(); $hasStartedSeries = $learning-> hasStartedSeries($series);


```php
Cannot instantiate trait App\Entities\Learning

Fajar left a reply on Somthing Worng

hi @iamine

I tried that you suggest i get

Non-static method App\Entities\Learning::hasStartedSeries() should not be called statically"

Fajar left a reply on Somthing Worng

hi @aurawindsurfing

I tried that you suggest i get unexpected ' else'

Fajar started a new conversation Somthing Worng

Hay i get code into view my blade is there to help

index.blade.php

{{ $series->title }}

{{ $series->title }}

@auth @hasStartedSeries($series)

{{round($user->getPerCompleteSeries($series))}} % Completed

Continue Learning @else Start Learning @endhasStartedSeries @endauth

I am calling hasstartedseries from trait

Learning.php

public function hasStartedSeries($series){ return $this->getNumCompleteLessonInSeries($series) > 0; }

And i get results like this in my blade

@hasStartedSeries($series) 0 % Completed

Continue Learning

can you help me

24 Jun
3 weeks ago

Fajar left a reply on Unexpected 'else'

@CRONIX - public function hasStartedSeries($series) { return $this->getNumCompleteLessonInSeries($series) > 0; }

Fajar started a new conversation Unexpected 'else'

hello

I get an error message in my code

  1. unexpected 'else'

@auth @hasStartedSeries($series)

{{round($user->getPerCompleteSeries($series))}} % Completed

CONTINUE LEARNING @else START LEARNING @endhasStartedSeries

                @else
                      <a href="{{ route('series.learning', $series->slug) }}" class="btn btn-lg btn-primary mr-16 btn-round">
                        START LEARNING
                    </a>
            @endauth

if I write like this

@auth @hasStartedSeries($series)

{{round($user->getPerCompleteSeries($series))}} % Completed

CONTINUE LEARNING @else START LEARNING @endhasStartedSeries

            @endauth

I get results like this

@hasStartedSeries($series) 0 % Lesson Completed CONTINUE LEARNING @endhasStartedSeries

but the start learning button does not appear

thank for your help

Fajar left a reply on Maximum Function Nesting Level

thx all problem solved

Fajar left a reply on Maximum Function Nesting Level

public $with = ['lessons'];

Fajar left a reply on Maximum Function Nesting Level

public function getNumCompleteLessonInSeries($series) { return count($this->getNumCompleteLessonInSeries($series)); }

Fajar started a new conversation Maximum Function Nesting Level

hello

I get an error message below

Maximum function nesting level of '256' reached, aborting!

I have tried to replace max_nesting_level but still failed, disabled xdebug still failed

when I disable xdebug I get a display of 502 nginx bad gateways

I use Laravel 5.7 and homestead

can anyone help me thank you

26 Nov
7 months ago

Fajar left a reply on LogoutOtherDevices

@d9705996

of course I have un-commented to activate

\Illuminate\Session\Middleware\AuthenticateSession::class,

Fajar left a reply on LogoutOtherDevices

@d9705996 I Steal use default laravel

public function logoutOtherDevices($password, $attribute = 'password') { if (! $this->user()) { return; }

    $result = tap($this->user()->forceFill([
        $attribute => Hash::make($password),
    ]))->save();

    $this->queueRecallerCookie($this->user());

    return $result;
}

Fajar started a new conversation LogoutOtherDevices

hey, I am trying to use the logoutOtherDevices feature available in Laravel, but I have a question when logging out successfully the password always changes as a result the user cannot log in because the password is not the same

then how do this not happen when logging out of 2 devices but not changing the password

05 Nov
8 months ago

Fajar left a reply on [Vue Warn]: Avoid Mutating A Prop

@D9705996 first

i add <subscribe-button :active="{{ json_encode($thread->isSubscribedTo) }}"></subscribe-button>

in _disscusionHeader.blade.php

  1. i create SubscribeButton.vue

<button :class="classes" @click="subscribe">Subscribes</button>

export default { props: ['active'],
    computed: {
       
        classes() {
            
            return ['btn', this.active ? 'btn-primary' : 'btn-secondary'];
            

        }

    },

    
    methods: {

        
        subscribe() {
            
            
            axios[(this.active ? 'delete' : 'post')]
            (location.pathname + '/subscriptions');
            
            this.active = ! this.active;

            flash('Subscribe');

        }

    }

}
  1. i use Thread.vue to register the SubscribeButton in _disscusionHeader
import Replies from '../components/Replies.vue';
import SubscribeButton from '../components/SubscribeButton.vue';

export default {

    props: ['initialRepliesCount'],

    components: { Replies,SubscribeButton },

    data() {

        return {

            repliesCount: this.initialRepliesCount

        };

    }

}

Fajar left a reply on [Vue Warn]: Avoid Mutating A Prop

@usaandi I might use it on Thread.vue

Thread.vue

import Replies from '../components/Replies.vue'; import SubscribeButton from '../components/SubscribeButton.vue';

export default {

    props: ['initialRepliesCount'],

    components: { Replies,SubscribeButton },

    data() {

        return {

            repliesCount: this.initialRepliesCount

        };

    }

}

Fajar left a reply on [Vue Warn]: Avoid Mutating A Prop

hy @D9705996 if I make it like this the class button doesn't change every time I click

<button :class="classes" @click="subscribe">Subscribes</button>

data: function () { return { classes: { active: 'btn'? 'btn-primary' : 'btn-secondary', } } }

<subscribe-button :active="{{ json_encode($thread->isSubscribedTo) }}"></subscribe-button>

Fajar started a new conversation [Vue Warn]: Avoid Mutating A Prop

hay, I'm trying to make a subscribe button when I click the subscribe button I get a message colored mutated

but the data is entered into a table like this message I got

[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "active"

found in

---> at resources/js/components/SubscribeButton.vue at resources/js/pages/Thread.vue

SubscribeButton.vue

<button :class="classes" @click="subscribe">Subscribes</button>

export default { props: ['active'],
    computed: {
       
        classes() {
            
            return ['btn', this.active ? 'btn-primary' : 'btn-secondary'];
            

        }

    },

    
    methods: {

        
        subscribe() {
            
            
            axios[
                
                (this.active ? 'delete' : 'post')
            ](location.pathname + '/subscriptions');
            
            this.active = ! this.active;

            flash('Subscribe');

        }

    }

}

disscusionHeader.blade.php

<subscribe-button :active="{{ json_encode($thread->isSubscribedTo) }}"></subscribe-button>

can you help me

Fajar left a reply on Vue Warn Error In Render: "TypeError: Cannot Read Property 'link' Of Undefined"

hy @globals

for the advice that you gave the results for the v-text it doesn't display any data, whether it's the recipient's name or link, after I see vueDevtool I get data that shows that the data is there. but it doesn't appear in v-text

for this format code

  • @click="markAsRead(notification)" >
  • because

    1. i remove :href="notification.data.link" and i change :href="notification.link"
    2. i remove v-text="notification.data.message" and i change v-text="notification.message"

    Fajar left a reply on Vue Warn Error In Render: "TypeError: Cannot Read Property 'link' Of Undefined"

    when there is data in the notification table I get respone, cookies, timings, headers, and previews

    preview : [{id: "60796c5b-0284-4365-9ad0-2fa53edae1c2", type: "App\Notifications\ThreadWasUpdated",…}] 0: {id: "60796c5b-0284-4365-9ad0-2fa53edae1c2", type: "App\Notifications\ThreadWasUpdated",…} created_at: "2018-11-05 08:58:49" data: {message: "Fajarreplied to Tes deleting activities", link: "/threads/veniam/1#reply-1"} link: "/threads/veniam/1#reply-1" message: "Fajarreplied to Tes deleting activities" id: "60796c5b-0284-4365-9ad0-2fa53edae1c2" notifiable_id: 1 notifiable_type: "App\User" read_at: null type: "App\Notifications\ThreadWasUpdated" updated_at: "2018-11-05 08:58:49"

    response: [{"id":"60796c5b-0284-4365-9ad0-2fa53edae1c2","type":"App\Notifications\ThreadWasUpdated","notifiable_type":"App\User","notifiable_id":1,"data":{"message":"Fajarreplied to Tes deleting activities","link":"/threads/veniam/1#reply-1"},"read_at":null,"created_at":"2018-11-05 08:58:49","updated_at":"2018-11-05 08:58:49"}]

    header : general -> Request URL: http://edu-travel.test/profiles/Mr.%20Jarred%20Rath/notifications Request Method: GET Status Code: 200 OK Remote Address: 192.168.10.10:80 Referrer Policy: no-referrer-when-downgrade

    response-header -> Cache-Control: no-cache, private Connection: keep-alive Content-Type: application/json Date: Mon, 05 Nov 2018 09:00:35 GMT phpdebugbar-id: X4f4e4c632aec9e1e8e1a9c66942e297e Server: nginx/1.14.0 (Ubuntu) Set-Cookie: XSRF-TOKEN=eyJpdiI6Im1SK3lpMWhQdndGb2hQTGZuYUxTUHc9PSIsInZhbHVlIjoiVGJBMUM4TVI3ZjJUbndRdWJUcDViRW1udVNnRWtKUjVHY0VXKzFxOG9aalJEb3hNUWNLMFkxa2JOTldTbGVmZCIsIm1hYyI6IjIxNGYzZGY5NTFhNTA2ZjQ0ODhkZDhiYjcyMTdlNTI0NTQzYTk3M2JjZDg1ZDlmNTAzMDBmYzliOThhMzc5YTUifQ%3D%3D; expires=Mon, 05-Nov-2018 11:00:35 GMT; Max-Age=7200; path=/ Set-Cookie: edutravels_session=eyJpdiI6IkdFSFJjOFwvQXBsRE55VjU3U2J4Z0Z3PT0iLCJ2YWx1ZSI6IjVZTkZpa0VqYUVwOUIwU25ZVUtMUlNrbkRQXC9DSHdwYmNjZFlsb0pQbVJvODNSNFNHNjIzZ2VlRHVjZjdUZ2hEIiwibWFjIjoiMmVhNzk3NjU2MWYyZGI0ZTFjYWViZThiMmI5ODc3MGI3YjJiZDI5NzcxYjY3NjdjZTJlNGU2NzkwYTQ3OTkyYyJ9; expires=Mon, 05-Nov-2018 11:00:35 GMT; Max-Age=7200; path=/; httponly Transfer-Encoding: chunked

    request-header

    Accept: application/json, text/plain, / Accept-Encoding: gzip, deflate Accept-Language: en-US,en;q=0.9 Connection: keep-alive Cookie: XSRF-TOKEN=eyJpdiI6Ild3OFBaaVRLZHZSZjhicFBkdUc2Z1E9PSIsInZhbHVlIjoibjgrckpiYUZPV1BzY1Y0OFV5VTVOXC82Q0o1N2g1XC93Zmpaa0ljaUpOcFwvSkJuNDMyXC9ZdVh6QWExa0d1dExkWUsiLCJtYWMiOiIwYjUwODcyNWIzNmVhOTAwMzI5NGZmNTJkY2Y3Zjc0MDNmNWYwNWE4ZmM2ODY4ZTQ0MGI0Yzk4NjRjZjhhYWIxIn0%3D; edutravels_session=eyJpdiI6IjlcL2dhS2h4dXdMd0Q4Q1NteGJndlh3PT0iLCJ2YWx1ZSI6IjlPMm5nZFNMekg0NGNmeStYN1p6TUk0UUxOWG9jUkp2eGRQQ242cUJMdEY0bVVoXC9iVVBkXC9xNGlcL3FzNmM0aVEiLCJtYWMiOiIzYjllOGU2YmY5MzFjNTgzNWI0NmZhZjQ1NmRlYmEwZDcxY2Y5MjNjNGVlY2Q2N2Q4NWY5YzlhOWI3YjdjMGNiIn0%3D Host: edu-travel.test Referer: http://edu-travel.test/threads/veniam/1 User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36 X-CSRF-TOKEN: RB8FyyWajmSmyGpVHpIXPMiGwca5VvbKtwAgon3w X-Requested-With: XMLHttpRequest X-XSRF-TOKEN: eyJpdiI6Ild3OFBaaVRLZHZSZjhicFBkdUc2Z1E9PSIsInZhbHVlIjoibjgrckpiYUZPV1BzY1Y0OFV5VTVOXC82Q0o1N2g1XC93Zmpaa0ljaUpOcFwvSkJuNDMyXC9ZdVh6QWExa0d1dExkWUsiLCJtYWMiOiIwYjUwODcyNWIzNmVhOTAwMzI5NGZmNTJkY2Y3Zjc0MDNmNWYwNWE4ZmM2ODY4ZTQ0MGI0Yzk4NjRjZjhhYWIxIn0=

    Fajar started a new conversation Vue Warn Error In Render: "TypeError: Cannot Read Property 'link' Of Undefined"

    Hay, I'm trying to make a notification using vue I get a message when I type $ vm0.notifications = ['adf'];

    this is the message In rendering error: "TypeError: Cannot read property 'link' of undefined"

    found on UserNotifications.vue

    can you help me where is my fault thank you

    UserNotifications.vue

  •   Notifications

        <ul class="dropdown-menu dropdown-menu-right"  >
            <li v-for="notification in notifications">
    
                <a class="dropdown-item" :href="notification.data.link"
                    v-text="notification.data.message"
                    @click="markAsRead(notification)"
                >
                
                </a>
                
            </li>
        </ul>
    </li>
    

    export default {
        data() {
    
            return { notifications: false }
    
        },
    
        created() {
    
            axios.get('/profiles/' + window.App.user.name + '/notifications')
                 .then(response => this.notifications = response.data);
    
        },
    
        methods: {
    
            markAsRead(notification) {
    
                axios.delete('/profiles/' + window.App.user.name + '/notifications/' + notification.id)
    
            }
    
        }
    
    }
    

    TreadWasUpdated.php public function toArray($notifiable) { return [ 'message' => $this->reply->owner->name . 'replied to ' . $this->thread->title, 'link' => $this->reply->path() ]; }

  • 10 May
    1 year ago

    Fajar started a new conversation Upload File Type Mp4,mp3,pdf,docx

    Hello guys I want to ask if my way of uploading files with type mp4, mp3, pdf.docx is correct

    after i try to run it i got an error message The files must be a file of type: file / pdf, docx, video / mp4, audio / mp3.

    Thank you for the help

    $this->validate($request,[ 'user_id' => 'required', 'name' => 'required|string|max:255', 'email' => 'required|string|email|max:255|unique:bookings', 'phone' => 'required', 'subject' => 'required', 'do_date' => 'required', 'files' => 'required|file|mimetypes:file/pdf,docx,video/mp4,audio/mp3',

        ]);
    

    $formInput = $request->except('files');

        $data = $request->files;
    
        if($data){
    
            $dataName   = $data->getClientOriginalName();
            $data->move('user/bookings/', $dataName);
            $formInput['files']     = $dataName;
        }
    
        Booking::create($formInput);
    
        flash('Youre request success send')->success();
    
        return redirect()->back();
    
    07 Apr
    1 year ago

    Fajar left a reply on File_put_content

    @rin4ik This is my username in telegram fajar_dev +621 89672650962

    No error in my browser

    Fajar left a reply on File_put_content

    @rin4ik can i add you to my WhatsApp contact

    Fajar left a reply on File_put_content

    @rin4ik I have already done but did not solve the problem for realtime notification

    Fajar left a reply on File_put_content

    @rin4ik and now after all back to normal vue my js is not running in realtime alerts, notifications do not respond progressbar must be refreshed in new running

    Fajar left a reply on File_put_content

    @rin4ik thanks for the answers given I did reinstall my vagrant and everything was fixed

    before i do install ualang vagrant again i try to type ll and see my storage folder www-data

    terimaskih all

    Fajar left a reply on File_put_content

    @rin4ik I called him through

    dashboard.blade.php

    @extends('backend.adminmaster')

    @section('tabnavigations')
    
        @include('backend.partials.tab')
    
    @endsection
    

    Fajar left a reply on File_put_content

    @rin4ik

    tab.blade.php

    <nav class="nav nav-underline justify-content-center">
    
        @can('view_bookings')
    
            <a class="nav-link{{ Request::is('bookings*') ? 'active' : '' }}" href="{{route('bookings.index')}}">Booking</a>
    
        @endcan
    
        @can('add_bookings')
    
            <a class="nav-link{{ Request::is('bookings*') ? 'active' : '' }}" href="{{route('travellings.index')}}">Travelling</a>
    
        @endcan
    
        
    
            <a class="nav-link {{ Request::is('products*') ? 'active' : '' }}" href=""> Translater</a>
    
             <a class="nav-link {{ Request::is('products*') ? 'active' : '' }}" href=""> E-learning</a>
    
       
    </nav>
    

    Fajar left a reply on File_put_content

    @rin4ik

    tab.blade.php file already exists in the folder views/backend/partials/

    Fajar left a reply on File_put_content

    @rin4ik

    after you can i get this

    file_put_contents(/home/vagrant/code/LaraTravels/storage/framework/cache/data/85/5f/855f92484c8c414d36c1b25cb24876e30229cbbf): failed to open stream: No such file or directory (View: /home/vagrant/code/LaraTravels/resources/views/backend/partials/tab.blade.php) (View: /home/vagrant/code/LaraTravels/resources/views/backend/partials/tab.blade.php)

    Fajar started a new conversation File_put_content

    hello

    I get an error  like this

    file_put_contents (/home/vagrant/code/LaraTravels/storage/framework/views/fab1513231c3a253119b7827fad18178fba7f7db.php): failed to open stream: Permission denied

    I've done php artisan config: cache

    then succeed then i add new file after i input  this my blade

     @extends ('backend.adminmaster')

         @section ('tabnavigations')

            @include ('backend.partials.message')

        @endsection

            @section ('content')

            

            @endsection

    reappear this error

    file_put_contents (/home/vagrant/code/LaraTravels/storage/framework/views/fab1513231c3a253119b7827fad18178fba7f7db.php): failed to open stream: Permission denied

    I need help so that this does not happen again thanks

    06 Apr
    1 year ago

    Fajar left a reply on V-for Require Key

    @rin4ik

    thanks for his advice after I tried it and succeeded

    Thank you for always helping me

    Fajar left a reply on V-for Require Key

    @rin4ik

    <li class="dropdown">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
            <i class="fa fa-bell"></i>
            <span class="notification-count label label-danger"></span>
            <span class="caret"></span>
        </a>
    
        <ul class="dropdown-menu dropdown-menu-notifications" role="menu">
            <li v-for="notification in notifications">
                <a :href="notification.url" >
                    <div>
                        <i class="fa fa-exclamation-circle fa-fw"></i> {{notification.description}}
                        <span class="pull-right text-muted small"><timeago :since="notification.time" :auto-update="5"></timeago></span>
                    </div>
                </a>
                <div class="divider"></div>
            </li>
    
            <li>
                <div class="text-center see-all-notifications">
                    <a href="notifications.html">
                        <strong>See All Alerts</strong>
                        <i class="fa fa-angle-right"></i>
                    </a>
                    <div>No notifications</div>
                </div>
            </li>
    
        </ul>
    </li>
    

    Fajar started a new conversation V-for Require Key

    hello

    I have experienced an error v-for require key

    vue template

    • {{notification.description}}
    •         <li>
                  <div class="text-center see-all-notifications">
                      <a href="notifications.html">
                          <strong>See All Alerts</strong>
                          <i class="fa fa-angle-right"></i>
                      </a>
                      <div>No notifications</div>
                  </div>
              </li>
      
          </ul>
      

      script import VueTimeago from 'vue-timeago'

          Vue.use(VueTimeago, {
          name: 'timeago',
          locale: 'en-US',
          locales: {
          
              'en-US': require('vue-timeago/locales/en-US.json')
          }
      })
      
      export default {
      
         
          props:['user_id'],
      
          data(){
      
              return {
      
                  notifications: []
                 
              }
      
          },
          mounted() {
              Echo.channel('order-tracker')
              .listen('OrderStatusChanged', (booking) => {
      
                  if(this.user_id == booking.user_id){
      
                      this.notifications.unshift({
                          description: 'Booking ID: ' + booking.id + ' updated',
                          url: '/bookings/' + booking.id,
                          time: new Date()
                      })
      
                  }
                 
      
              });
          }
      }
      

      help me thax

    Fajar started a new conversation Vue-starap Not Found

    hello

    I get an error  first I add npm install github: wffranco / vue-strap --save

    and everything works progressbar and alerts work well

    then i want to add notification in the nav section then i add npm install --save vue-timeago

    and added this in OrderNotification

    import VueTimeago from 'vue-timeago'

    Vue.use (VueTimeago, {   name: 'timeago', // component name, `timea by default   locale: 'en-US',   locales: {     // you will need json-loader in webpack 1     'en-US': require ('vue-timeago / locales / en-US.json')   } })

    after my npm run dev

    I get an error

    that vue-strap i not found

    i need help for this

    thank you

    Fajar left a reply on Permission Denied

    @rin4ik

    thanks for your answe

    Fajar left a reply on Permission Denied

    @rin4ik

    if I can ask why this happened can you explain to me

    Fajar left a reply on Permission Denied

    @rin4ik thank you for your answers

    Fajar started a new conversation Permission Denied

    768/5000 hello i want to ask i get an error like this The stream or file "/home/vagrant/code/LaraTravels/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied

    this happened when i entered into Homestead and typed vagrant up then vagrant ssh after that i typed sudo apt-get update and upgarde

    after finishing i try running my laravel app and get an error like this The stream or file "/home/vagrant/code/LaraTravels/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied This error occurs when I click the login button and I can not access my login page

    I need your help

    What should I do

    thank you

    04 Apr
    1 year ago

    Fajar left a reply on Vue Warn Uknow Custem Element

    @rin4ik

    <main>
    
        <div id="app">
    
            <order-progress></order-progress>
    
        </div>
    </main>
    

    not working

    Fajar left a reply on Vue Warn Uknow Custem Element

    @rin4ik

    I have tried

    and i get error warn nknown custom element: <order-progress> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

    Fajar left a reply on Vue Warn Uknow Custem Element

    @rin4ik error I get fixed

    Unknown custom element: <order-progress> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

    Fajar left a reply on Vue Warn Uknow Custem Element

    @rin4ik const app = new Vue({ el: '#app', mounted(){ Echo.channel('order-tracker') .listen('OrderStatusChanged', (e) => { console.log('Tes Notifikasi') }); } });

    this is my app.js

    Fajar left a reply on Vue Warn Uknow Custem Element

    @rin4ik

    <main>
        
        <div id="app">
    
            <order-progress></order-progress>
    
        </div>
    </main>
    

    what's this like you mean

    Fajar left a reply on Vue Warn Uknow Custem Element

    @rin4ik this is my blade div id

                <div id="flash-msg">
                
                    @include('flash::message')
    
                </div>
    
                <order-progress></order-progress>
    
                @yield('content')
            
            </main>
    
        </div>
    

    Fajar left a reply on Vue Warn Uknow Custem Element

    @rin4ik this is my blade

    Fajar left a reply on Vue Warn Uknow Custem Element

    @rin4ik

    this is my blade

            @include('backend.partials.nav')
            
                @yield('tabnavigations')
    
            <main role="main" class="container">
    
                <div id="flash-msg">
                
                    @include('flash::message')
    
                </div>
    
                <order-progress></order-progress>
    
                @yield('content')
            
            </main>
    
        </div>