Awais Asked: Feb 21,2020

I have 2 models in my app, 'User' & 'MedicineType' (each User belongs to one MedicineType).I made the one-to-many relation between two model using belongsTo() and hasMany(). hasMany() relation works perfectly but belongTo() doesn't work. Does anyone know where did I make a mistake?

Votes

Vote Up In Progress

Vote Up 0 Answers

Vote Up 233 Views

Awais Asked: Feb 20,2020

I was having a bit of trouble getting PHPStorm to work with laravel/composer.Upon opening PHPStorm, I created a new Composer Project: http://puu.sh/e4y1H/6fb97cf976.pngAfter which, I filled in necessary the details: http://puu.sh/e4y6Z/55bc60e7fc.pngAfter continuing, I run into the following error:

Votes

Vote Up In Progress

Vote Up 2 Answers

Vote Up 115 Views

Muhammad Arslan Asked: Feb 21,2020

How to get accredited from the National Technology Council? How to get registered by National Technology Council?

Votes

Vote Up Solved

Vote Up 1 Answers

Vote Up 131 Views

Mohsin Ali Asked: Feb 19,2020

I want to run the below two firebase JS functions in sync since I need the values from both of these in the last if block to perform an operation. I have console.log(1), (2) and (3) to see if they are working in sync but they don't. I tried the .then() on the first block but that didn't work. Can someone help here? I am guessing promise might work here but I do not know how to implement that

Votes

Vote Up In Progress

Vote Up 0 Answers

Vote Up 81 Views

Awais Asked: Feb 21,2020

Here is my controllerpublic function registeruser() { $firstname = Input::get('firstname'); $lastname = Input::get('lastname'); $data = Input::except(array('_token')) ; $rule = array( 'firstname' => 'required', 'lastname' => 'required', ) ; $validator = Validator::make($data,$rule); if ($validator->fails()) { $messages = $validator->messages(); return Redirect::to('/')->with('message', 'Register Failed'); } else { DB::insert('insert into user (firstname, lastnam ...

Votes

Vote Up In Progress

Vote Up 0 Answers

Vote Up 168 Views

Zeeshan Asked: Feb 18,2020

Can any one explain what the exact MVC every one today talking about MVC

Votes

Vote Up Solved

Vote Up 4 Answers

Vote Up 165 Views

Zeeshan Asked: Feb 18,2020

I need to check the checked property of a checkbox and perform an action based on the checked property using jQuery.For example, if the age checkbox is checked, then I need to show a textbox to enter age, else hide the textbox.But the following code returns false by default: if ($('#isAgeSelected').attr('checked')) { $("#txtAge").show(); } else { $("#txtAge").hide(); }[removed][removed] <input type="checkbox" id="isAgeSelected"/> Age is selected ...

Votes

Vote Up In Progress

Vote Up 0 Answers

Vote Up 87 Views

Zeeshan Asked: Feb 18,2020

Implement, as a script, a "safe" delete command, sdel.sh. Filenames passed as command-line arguments to this script are not deleted, but instead gzipped if not already compressed (use file to check), then moved to a ~/TRASH directory. Upon invocation, the script checks the ~/TRASH directory for files older than 48 hours and permanently deletes them.

Votes

Vote Up In Progress

Vote Up 0 Answers

Vote Up 67 Views

Crybik Asked: Feb 19,2020

We need to have a talk on the subject of what's yours and what's mine.EMAIL salehahmd100@gmail.com

Votes

Vote Up In Progress

Vote Up 1 Answers

Vote Up 103 Views

arslan31 Asked: Feb 21,2020

Anybody is here to recommend me the best programming book of php?

Votes

Vote Up Solved

Vote Up 2 Answers

Vote Up 100 Views