Month: May 2018

  • Tables Relationship in Laravel to get data

    Hello to all, welcome to therichpost.com. In this post, I will tell you, Tables Relationship in Laravel to get data. Laravel is one of the top php mvc framework and growing very faster. Here is the working to get data from multiple tables with relationship: Product-table Model: public function categories(){ return $this->hasMany(‘App\Category’,’product_id’); } Category-Table Model:…

    Laravel 7.2 routing with route group auth guard check with prefix
  • How to Upload Multiple Files in Laravel?

    Hello to all, welcome to therichpost.com. In this post, I will tell you, How to Upload Multiple Files in Laravel? Laravel is one of the top php mvc framework and growing very faster. Here is the working code for upload Multiple files in laravel: This is just an exmple code: $files = $request->file(‘file’); if($request->hasFile(‘file’)) { foreach ($files as…

    Laravel 7.2 routing with route group auth guard check with prefix
  • How to Mapping Props to an Array in React?

    ,

    Hello, welcome to therichpost.com. In this post, I will tell you, How to Mapping Props to an Array in React? Reactjs is a Javascript Library to build user interface. Here is the example code for this: Object.keys() is used to convert the object to array, and create the JSX using Array.map(): const props = { “links”: {…

    reactjs