URL: /api/faculty/login
METHOD: POST
Request Payload:
| <input type="file" @change="image_changed"> | |
| // Vuejs | |
| =========== | |
| const app = new Vue({ | |
| el: '#app', |
| // Controller Code Section | |
| public function edit($id) { | |
| $package = Package::find($id); | |
| return view('edit.blade.php', ['[package' => $package]); | |
| } | |
| // URL Section |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Todo List</title> | |
| <script src="https://cdn.jsdelivr.net/npm/vue@2.5.17/dist/vue.js"></script> | |
| </head> | |
| <style type="text/css"> | |
| .preview { | |
| padding: 5px; | |
| border: 1px solid #8BC34A; |
| export PATH=/Applications/MAMP/Library/bin:$PATH | |
| export DYLD_LIBRARY_PATH=/Applications/MAMP/Library/lib/mysql |
Install Supervisor with sudo apt-get install supervisor. Ensure it's started with sudo service supervisor restart.
In /etc/supervisord/conf.d/ create a .conf file. In this example, laravel_queue.conf (contents below). Give it execute permissions: chmod +x laravel_queue.conf.
This file points at /usr/local/bin/run_queue.sh, so create that file there. Give this execute permissions, too: chmod +x run_queue.sh.
Now update Supervisor with: sudo supervisorctl reread. And start using those changes with: sudo supervisorctl update.
| import sys | |
| import time | |
| def print_label(name, age, course, email, phone): | |
| filename = name+'_'+course+'_'+str(time.time()) | |
| dir_name = "results"; | |
| filename = dir_name+'/'+filename | |
| f= open(filename,"w+") |
| <?php | |
| // Write a php function which should behave like the following | |
| /** | |
| * For eg: | |
| * is_email_official('info@hashresearch.com', 'http://hashresearch.com'); | |
| * >> True | |
| * | |
| * is_email_official('info@gmail.com', 'http://hashresearch.com'); | |
| * >> False |
Create a laravel application using composer and build the following requirments. You app should contain minimum three pages as follows. All UI components should be written using twitter bootstrap or any other similar frameworks of your choice, but not pure html.
/ - Return a html page which is the homepage/about - Return a html page which is about us page for the given url/contact - Return a html page which is a contact us page for the given url and the page should have a form containing name, email, message, submit button.