• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

  • Register
  • Login
  • Search
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups

Override core model not in effect

General Discussion
2
2
219
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T
    trane294 last edited by 19 Sept 2019, 14:53

    I did everything following tutorial but it seems not to work

    https://github.com/bagisto/bagisto/issues/1482

    1 Reply Last reply Reply Quote 0
    • R
      rahul last edited by 21 Sept 2019, 07:59

      Hi @trane294

      Hi @accountmine

      Your whole code is correct instead of dumping whole customer, try to dd($customer->name), because you have created Accessor for name.

      For more detail, please go through with this article - https://laravel.com/docs/5.8/eloquent-mutators#defining-an-accessor

      Thanks

      1 Reply Last reply Reply Quote 0
      1 out of 2
      • First post
        1/2
        Last post