Bagisto Forum

    Bagisto

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

    Override core model not in effect

    General Discussion
    2
    2
    207
    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

      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

        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
        • First post
          Last post