deepu07

Member Since 1 Year Ago

Experience Points 22,010
Experience Level 5

2,990 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 181
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

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

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

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

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

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

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

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

22 Apr
2 days ago

deepu07 started a new conversation Fetch Array Values Without Index Values

Hi This is my array

  0 => "5cb3f3df9b5d7e25d02faf"
  1 => "5cb545649b5d7e55807dc9"
  2 => "5cb696c55f43ef0e981415"
  3 => "5cb7e8623b3fd71157082e"
  4 => "5cb939e63b3fd740f93852"
]```
I want to fetch only values without indexes. How can I achieve that?
Anyhelp that would be great. Thanks!
03 Apr
3 weeks ago

deepu07 left a reply on Load Css From S3

It was auth problem. resolved.

deepu07 started a new conversation Load Css From S3

How to load CSS dynamically from AWS S3 Bucket. Somehow it is not rendering in the browser. Here is my code @if(Auth::user()->role != user) @endif

In my console I'm getting like this GET http://s3.amazonaws.com/testing/css/2.css net::ERR_ABORTED 403 (Forbidden)

How to resolve this err? Any help that would be great. Thanks in advance.

01 Apr
3 weeks ago

deepu07 started a new conversation Laravel Validation

Hi guys, Somehow it is always displaying a validation err 'stylesheet' => 'nullable|mimes:text/css' Am I doing something wrong?? Thanks in advance

31 Mar
3 weeks ago

deepu07 left a reply on Laravel API Keys In AWS

@ricardo so let me ask in this way How to manage Laravel API keys securely in AWS ? any idea...

deepu07 started a new conversation Laravel API Keys In AWS

Hi Guys, How to store API keys in AWS?? any suggestions/help that would be great. Thanks!

28 Mar
3 weeks ago

deepu07 left a reply on Laravel Storage Files

Solved. Thanks!

deepu07 started a new conversation Laravel Storage Files

Hi guys, below code is working fine if I upload Image but my requirement is I want to upload .css or .php or .js file and save in my local. How can I do that?

            $image = $request->file('sheet');
            $filename = auth()->user()->name . '.' . $image->getClientOriginalExtension();
            \Image::make($image)->save( public_path().'/uploads/' . $filename );
        }```
Thanks!
26 Mar
4 weeks ago

deepu07 left a reply on Current User Details

@cronix thanks for reply. Here is my thing I'm using Laravel-backpack package in my project. My job is change css dynamically for the backpack dashboard based on logined user. rn Backpack has a file i.e. Config\backpack\base.php file here we can change the css for the dashboard So I want to find user details and based on user I want to apply css dynamically. Any ideas how to achieve this?

deepu07 left a reply on Auth::user() Is Returning Null In Notify Class, But User Is Logged In

@bimalshah72 @saqueib do you guys any idea how to find current user info inside of the Config/app.php file? Any help that would be great. Thanks!

deepu07 left a reply on Current User Details

Somehow inside of Config\app.php file it is recognizing the helper function and also no luck with Facade too.

deepu07 started a new conversation Current User Details

Hi, How to get user details in Laravel App/Config file or Is there anyway to get current user details by creating a helper or service ?? Any suggestions/help would be great. Thanks!

25 Mar
4 weeks ago

deepu07 left a reply on Dynamic Stylesheets

Thanks @s

deepu07 started a new conversation Dynamic Stylesheets

Hello Guys, I have one quick question. which is the most efficient way to change css dynamically based on logged user (roughly I have 30+ users). I have 2 ways in my mind

Approach-1. Storing a stylesheet values in db directly like primary, secondary colors and user_id. Get values and apply dynamically. Approach-2. Write style sheets and create a table for written stylesheets and user_id. And get stylesheets based on logged user.

what you guys think on these approaches? Which one you like or do you have anything efficient approaches for this scenario. Looking forward to hear from you guys. Any ideas/suggestion that would be great. Thanks in Advance.

Note: using Laravel, Backpack for Admin panel

deepu07 left a reply on Change CSS Dynamically

Thanks for your reply. Do you think which is right way ` to creating a table (user_id, primary_color, secondary_color) for styles or writing a stylesheets individually and storing written stylesheets with user_id foreign key? which approach will be the efficient?

deepu07 started a new conversation Change CSS Dynamically

Hi, I hope someone can help with this Change admin dashboard UI (using Laravel-backpack) based on logged User I have a table for Users and one for styles (includes primary and secondary color columns). There is a one to one relationship. I would like to change some css attributes like colors i.e. UI depending on which 'User' is loggined. What would be a good practice to do this? Any ideas/suggestions that would be great. Thanks!

23 Mar
1 month ago

deepu07 started a new conversation Deploying Existing Laravel In Aws Linux

Hello guys, I have one quick question "Im trying to deploy existing laravel website into aws ec2. everything went well after some trails. but somehow I',m getting this err"

The Mix manifest does not exist. (View: /var/www/html/blog-develop/resources/views/layouts/app.blade.php) (View: /var/www/html/blog-develop/resources/views/layouts/app.blade.php)```
does anyone has experienced before??
Thanks In advance.  and also googled for the solution but no luck at all.
18 Mar
1 month ago

deepu07 started a new conversation Passport With Laravel Backpack

Hi, in my project I'm using backpack for admin dashboard now for auth I want to install passport on top of backapack. Looking for any code samples/suggestions how the things will work ... Any help that would be great. Thanks in advance.

17 Mar
1 month ago

deepu07 started a new conversation Backpack-API

Hi Guys, one quick question how to connect/access external api into laravel-backpack? any ideas/suggestions.

08 Mar
1 month ago

deepu07 left a reply on Display Custom Error Msg

@jsenger thanks. It works! Even if url has an invalid id i want to display id in error message dynamically. how can I access $id value in render method? do you have any idea for that?

deepu07 started a new conversation Display Custom Error Msg

Hey guys, I have one quick question In my laravel project I want to customize findOrFail method error msg. how can I do that? is it a good idea to overwrite/modify core functions of framework?

    {
        $result = $this->find($id, $columns);

        if (is_array($id)) {
            if (count($result) === count(array_unique($id))) {
                return $result;
            }
        } elseif (! is_null($result)) {
            return $result;
        }

        throw (new ModelNotFoundException)->setModel(
            get_class($this->model), $id
        );
    }```

I want display `return response()->json(['status'=>'succ' 'msg'='error msg'], 404);` 
any help that would be great. Thanks!
28 Feb
1 month ago

deepu07 started a new conversation Laravel API GroupBy Format

Hi Guys this my logic. In result I want to display all the records groupBy subject_id. (In input user can pass multiple subjectIds). with this logic im not getting results in groupBy format. How can I do that? any help that would be appreciated. Thanks


        $data = [];
   
        foreach ($subjects as $subjectId) {
            $student = Student::select(['*'])
                                ->where('subject_id', $subjectId)
                                ->orderBy('grade')
                                ->get()
                                ->toArray();
                                
            array_push($data, $student);
        }
        return response(['success' => true, 'data' => $data]);```

deepu07 left a reply on Sorting Multidimensional Array By One Value

getting like this """ [{"course_id":"423","subject_number":"30","subject_name":"Se 30","start_year":"2009","end_year":"2009"}, \n {"course_id":"424","subject_number":"31","subject_name":"Sea 31","start_year":"2010","end_year":"2010",}, \n .......

deepu07 left a reply on Sorting Multidimensional Array By One Value

@bobbybouwmann thanks for reply in my case $collection = collect($array[0]['students']); is giving back the result in students collection. But $collection->sortBy(function ($item) { return $item['start_year']; }); giving an err like this (1/1) ErrorException Illegal string offset 'start_year'

deepu07 started a new conversation Sorting Multidimensional Array By One Value

Hi Guys, My Api result is like this. Here I want to display students orderBy('start_year') in result. How can I achieve that. Any help that would be appreciated. Thanks!

  324 => array:2 [
    "subjects" => array:2 [
      0 => array:7 [
        "id" => "4"
        "name" => "abc"
        "type" => "Arts"
      ]
      1 => array:7 [
        "id" => "7"
        "name" => "ghi"
        "type" => "Music"
      ]
    ]
    "students" => array:35 [
      0 => array:11 [
        "course_id" => "19"
        "subject_number" => "30"
        "subject_name" => "Season 30"
        "start_year" => "2016"
        "end_year" => "2009"
      ]
      1 => array:11 [
        "course_id" => "196"
        "subject_number" => "31"
        "subject_name" => "Season 31"
        "start_year" => "2007"
        "end_year" => "2010"
      ]
      2 => array:11 [
        "course_id" => "5722343234"
        "subject_number" => "2018"
        "subject_name" => "Season 2018"
        "start_year" => "2018"
        "end_year" => "2018"
      ]
  ]
]```
18 Feb
2 months ago

deepu07 left a reply on Get All The Records By Using Explode

yeah but I want display include ids

"success": true,
"data": [
"id" :1 {
"roll_nuber": 4,
"first_name": "FDA Approves MEDICREAs K-JAWS(R",
"last_name": null,
"gender": null,
"graduated_year": null
},
"id" :2 {
"roll_nuber": 5,
"first_name": "Berlin Heart Completes Enrollment in the EXCOR Pediatric Ventricular Assist Device (VAD) Post Approval Study",
"last_name": null,
"gender": null,
"graduated_year": null
},
"id" :3 {
"roll_nuber": 6,
"first_name": "Futura Mobility Enters into Telemedicine Partnership with REACH Health",
"last_name": null,
"gender": null,
"graduated_year": null
},
"id" :4 {
"roll_nuber": 7,
"first_name": "Harvard SEAS Engineers Develop Portable NMR Spectrometers",
"last_name": null,
"gender": null,
"graduated_year": null
}
]
}```

deepu07 left a reply on Get All The Records By Using Explode

Added $data = []; foreach ($studentIds as $studentId) { $data[$studentId] = []; } Bcse I want to display id object with details but getting like this

    "success": true,
    "data": {
        "4": [],
        "5": [],
        "6": [],
        "7": [],
        "8": {
            "roll_nuber": "[email protected]",
            "first_name": "Destinee",
            "last_name": "Hoeger",
            "gender": "Male",
            "graduated_year": "2000-01-01"
        },
        "9": {
            "roll_nuber": "[email protected]",
            "first_name": "Shyanne",
            "last_name": "Johnson",
            "gender": "Female",
            "graduated_year": "2000-01-01"
        },
        "10": {
            "roll_nuber": "[email protected]",
            "first_name": "Verona",
            "last_name": "Reynolds",
            "gender": "Female",
            "graduated_year": "2000-01-01"
        },
        "11": {
            "roll_nuber": "[email protected]",
            "first_name": "Randy",
            "last_name": "Daugherty",
            "gender": "Female",
            "graduated_year": "2000-01-01"
        }
    }
}```

deepu07 left a reply on Get All The Records By Using Explode

Getting like this array_push() expects parameter 1 to be array, null given

deepu07 left a reply on Get All The Records By Using Explode

@NAGRAJ722 - Hi @nagraj722 Getting like this Undefined variable: studentId I think we need to add foreach loop

17 Feb
2 months ago

deepu07 started a new conversation Get All The Records By Using Explode

Hi Guys Can anyone help me out (URL: http://localhost/getStudents/4:5:6:7) Even 4,5,6,7 records existed in database but not getting all the records and displaying only last record. How to display all the existed records in output? Thanks in advance

```public function getStudents($ids)
{   
    if(!$ids) 
        return "Please enter a valid student id";

    $studentIds = explode(':', $ids);

    $data = [];

    // fill output with blank data
    foreach ($studentIds as $studentId) {
        $data[$studentId] = [];
    }
    $students = Student::where('id', $studentId)->get();

    if(!$students)
        return "No Students are found with this . '$studentId' .";
    
    foreach ($students as $student) {
        $studentData=[];
        // $data[$studentId] = [];

        $studentData['roll_nuber'] = $student->roll_number;
        $studentData['first_name'] = $student->first_name;
        $studentData['last_name'] = $student->last_name;
        $studentData['gender'] = $student->gender;
        $studentData['graduated_year'] = $student->graduated_year;
        array_push($data, $studentData);
    }
    return response(['success' => true, 'data' => $data], 200);
}```

output

    "success": true,
    "data": {
        "4": [],
        "5": {
            "roll_nuber": "[email protected]",
            "first_name": "Destinee",
            "last_name": "Hoeger",
            "gender": "Male",
            "graduated_year": "2000-01-01"
        }
    }
}```
16 Jan
3 months ago

deepu07 left a reply on Larecipe - Write Gorgeous Documentations Like Laravel.

Hi Saleem, Does it support for Lumen also?

23 Dec
4 months ago

deepu07 started a new conversation Json Type Migration For Foreign Key Collection

Hi Folks,

Can anyone help me how to add JSON type column in migration for foreign key collection. I tried like this but somehow it is throwing error.

$table->json('tag_id'); $table->foreign('tag_id')->references('id')->on('tags');

Thanks in advance. Happy Holidays!

16 Dec
4 months ago

deepu07 started a new conversation Laravel 4.2

Hey Folks,

Can anyone help me on this "How to write COLLATE in laravel 4.2 query builder?" like my query looks join my_class p on c.id = pi.project_id and c.document COLLATE utf8_unicode_ci = n.num

Thanks In advance.

04 Oct
6 months ago

deepu07 started a new conversation Laravel Query Builder IfElse

Hey folks, Can anyone help me that how to apply if else condition in query builder? for example if my status =1 i want to execute one cond and status !=1 execute other cond. Any help that would be appreciated. Thanks in advance. Here is my query

`//Query Builder

        $this->db->select('id, status, new_class')
        ->from('table1 a')
        ->join('table2 b', 'b.id = a.number')
        ->join('table3 c', 'c.class = a.new_class')
        ->where('c.id', $inputId);

Here if status = 1 i want to stop execution here if status is in [2,3,4] i wanna execute below code too. How can I achieve in laravel query builder.

        ->where_in('status', [ 2, 3, 4 ])
        ->where('b.admin', true)
        ->where('b.teacher', true)
        ->where('b.is_new', false);
    $results = $this->db->get()->result();
01 Oct
6 months ago

deepu07 left a reply on Laravel Query Builder

ya. you're right based on id we won't see any duplicates. I'm removing that cond and I wanna merge rollnum value into one row.

1 bob 24 1234

How to achieve that. any idea..

`$data = \DB::table("table1 AS a") ->select("a.") ->join(\DB::raw("(SELECT id, name, age, COUNT(), FROM table2 GROUP BY b.name, b.age HAVING count(*) > 1 ) as b"), function($join){ $join->on("a.name", "=", "b.name")->on("a.age", "=", "b.age"); }) ->orderBy("a.name") ->get();

deepu07 started a new conversation Laravel Query Builder

Hey folks, I'm stuck-up with query builder. I wanna merge duplicate column values into one row.

for example I have

id name age rollnum 1 bob 24 null 2 bob 24 1234

i wanna see 1 bob 24 1234. How can i do that in below query. Any help that would be appreciated. Thanks in advance.

`//Query Builder

    $data = \DB::table("table1 AS a")
      ->select("a.*")
      ->join(\DB::raw("(SELECT 
          id, name, age, COUNT(*),
          FROM table2
          GROUP BY b.name, b.age
          HAVING count(*) > 1
          ) as b"), function($join){
            $join->on("a.name", "=", "b.name")->on("a.age", "=", "b.age")->on("a.id", ">", "b.id");
      })
      ->orderBy("a.name")
      ->get();

`

28 Sep
6 months ago

deepu07 started a new conversation Laravel Query Builder

Hey folks, I'm stuck-up with query builder. I have one raw sql query it is working when you execute in sequel Pro. but not working in code. can anyone help me on this? Thanks in advance.


SELECT a.*
FROM table1 a
JOIN (SELECT name, age, COUNT(*)
FROM table2 
GROUP BY name, age
HAVING count(*) > 1 ) b
ON a.name = b.name
AND a.age = b.age
ORDER BY a.name

//Query Builder

        $data = \DB::table("table1 AS a")
          ->select("a.*")
          ->join(\DB::raw("(SELECT 
              name, age, COUNT(*),
              FROM table2
              GROUP BY b.name, b.age
              HAVING count(*) > 1
              ) as b"), function($join){
                $join->on("a.name", "=", "b.name")->on("a.age", "=", "b.age");
          })
          ->orderBy("a.name")
          ->get();

        dd($data);      

Error                                                                                                                                                                             
  [PDOException]                                                                                                                                                            
  SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the rig  
  ht syntax to use near 'FROM table2                                                                                                                
              GROUP BY b.name, b.age'                                                                                                                                                                                                                                                                                          




  
26 Sep
6 months ago

deepu07 left a reply on Laravel Observer BadMethodCallException Method Illuminate\Database\Eloquent\Collection::save Does Not Exist.

Gotcha. so it is trying to create again model instance. that is the reason it is not working. am i right?

deepu07 left a reply on Laravel Observer BadMethodCallException Method Illuminate\Database\Eloquent\Collection::save Does Not Exist.

@Cronix Awesome it worked for me. Thanks. can you tell me why it is not working with $id?

deepu07 left a reply on Laravel Observer BadMethodCallException Method Illuminate\Database\Eloquent\Collection::save Does Not Exist.

Yup if I put rollNumber creation logic in controller it is working. why im using observer is by putting all the logic in controller that looks messy and lots code will stay in controller. for that purpose i'm trying like this. bcse of some reason not working. Anyway thanks @Cronix .

deepu07 left a reply on Laravel Observer BadMethodCallException Method Illuminate\Database\Eloquent\Collection::save Does Not Exist.

I'm getting this back in postman

  #table: "professors"
  #fillable: array:9 [
    0 => "first_name"
    1 => "last_name"
    2 => "roll_number"
    3 => "dob"
  ]
  #connection: null
  #primaryKey: "id"
  #keyType: "int"
  +incrementing: true
  #with: []
  #withCount: []
  #perPage: 15
  +exists: true
  +wasRecentlyCreated: true
  #attributes: array:11 [
    "first_name" => "test"
    "last_name" => "k"
    "dob" => "1989-07-24"
    "id" => 116
  ]
  #original: []
  #changes: []
  #casts: []
  #dates: []
  #dateFormat: null
  #appends: []
  #dispatchesEvents: []
  #observables: []
  #relations: []
  #touches: []
  +timestamps: true
  #hidden: []
  #visible: []
  #guarded: array:1 [
    0 => "*"
  ]
}```

deepu07 left a reply on Laravel Observer BadMethodCallException Method Illuminate\Database\Eloquent\Collection::save Does Not Exist.

Yes. I'm getting data into my observer if I do DD() it is showing all the information. but the problem is when you write save() or update() simply it is saying BadMethodCallException Method Illuminate\Database\Eloquent\Collection::update does not exist

deepu07 left a reply on Laravel Observer BadMethodCallException Method Illuminate\Database\Eloquent\Collection::save Does Not Exist.

@Cronix I tried but it is not working. At first I tried to update only roll_number and tried to pass all parameters through update method still it is throwing same error. like this BadMethodCallException Method Illuminate\Database\Eloquent\Collection::update does not exist

deepu07 started a new conversation Laravel Observer BadMethodCallException Method Illuminate\Database\Eloquent\Collection::save Does Not Exist.

Hi folks, can anyone help me out on this? I'm getting an error in laravel observer. I have both controller and observer. where controller logic helps me to create a professor record. I wanna use observer to generate a roll_number based on professor record and want to update in same table.

Here is my code

$professor = new Professor;
        $professor->first_name =  Input::get('first_name');
        $professor->middle_name =  Input::get('middle_name');
        $professor->last_name =  Input::get('last_name');
        $professor->dob =  Input::get('dob');
        
            $professor->save();

```OBSERVER
      public function created($id)
    {
        $professor = Professor::findOrFail($id);
        $professor->first_name = Input::get('first_name');
        $professor->last_name = Input::get('last_name');
        $professor->dob =  Input::get('dob');

        $firstNameLetter = strtoupper(substr($professor->first_name, 0, 1));
        $lastNameLetter = substr( $professor->last_name, 0, 1);
        $dateOfBirth = substr($professor->dob, 0,4);

        $rollNumber = $firstNameLetter . $lastNameLetter . '@' . $dateOfBirth;

        $professor = Professor::find($id);
        $professor->roll_number = $rollNumber;
        $professor->update();
    }

HERE Everything im getting a data to my observer but unable to save in DB. getting An error like this for both save() and update()

BadMethodCallException
Method Illuminate\Database\Eloquent\Collection::save does not exist.

Thanks for advance.
20 Sep
7 months ago

deepu07 left a reply on Git

see what files you modified in code git status. I'm files is there you need stash them git stash . after that only you will pull the code from remote. Use some Git UI softwares like sourcetree, tower etc... those are easy to see the changes and also easy to perform the operations.

deepu07 started a new conversation Laravel Model

Hi Folks,

Is Laravel 5.7 V will support model rules or do we need to describe in controller? I used to define rules in Laravel model. jus wondering still it is supporting or not. Thanks in advance

16 Sep
7 months ago

deepu07 started a new conversation Laravel-vue.js

Hi Folks, I got weird error in Vue file.


(found in <Root>)
warn @ app.js:36570
warnNonPresent @ app.js:37876
has @ app.js:37909
(anonymous) @ VM3379:3
Vue._render @ app.js:40521
updateComponent @ app.js:38765
get @ app.js:39119
Watcher @ app.js:39108
mountComponent @ app.js:38772
Vue.$mount @ app.js:44517
Vue.$mount @ app.js:46916
(anonymous) @ app.js:13931
__webpack_require__ @ app.js:20
Object.defineProperty.value @ app.js:13881
__webpack_require__ @ app.js:20
(anonymous) @ app.js:63
(anonymous) @ app.js:66
app.js:36570 [Vue warn]: Property or method "name" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.

(found in <Root>)
warn @ app.js:36570
warnNonPresent @ app.js:37876
has @ app.js:37909
(anonymous) @ VM3379:3
Vue._render @ app.js:40521
updateComponent @ app.js:38765
get @ app.js:39119
Watcher @ app.js:39108
mountComponent @ app.js:38772
Vue.$mount @ app.js:44517
Vue.$mount @ app.js:46916
(anonymous) @ app.js:13931
__webpack_require__ @ app.js:20
Object.defineProperty.value @ app.js:13881
__webpack_require__ @ app.js:20
(anonymous) @ app.js:63
(anonymous) @ app.js:66
app.js:36570 [Vue warn]: Property or method "description" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.

(found in <Root>)```

Here is My app.js code
`new Vue({
    el: '#app',

    data: {
       name: ' ',
       description: ' '
    },

        methods: {
        },
});`

#blade file I'm loading app.js file 
` <script src="/js/app.js"></script>`

Any help. Thanks in advance
15 Sep
7 months ago

deepu07 started a new conversation Laravel-homestead

Hey Folks, Im new to homestead. I'm struggling with creating two laravel projects in homestead. Can anyone help me on this? here is my config code:

#YAML file (I have two laravel projects in Sites foldes.)


    - map: ~/Development/sites/Laravue
      to: /home/vagrant/sites/Laravue

    - map: ~/Development/sites/Lara-vue
      to: /home/vagrant/sites/Lara-vue

sites:

    - map: Laravue.test
      to: /home/vagrant/sites/Laravue/public

    - map: Lara-vue.test
      to: /home/vagrant/sites/Lara-vue/public```

#here is my hosts file

127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost

192.168.10.10 Laravue.test 192.168.10.10 Lara-vue.test


I'm getting one project for two URLs (Laravue.test and Lara-vue.test both are routing to same project)

Anyone have any idea why it is loading one project. Thanks in advance