- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 9
- Posts with Upvotes
- 9
- Upvoting Members
- 7
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
- Interests
- Programming, web development
- PC Specs
- 8GB, 256 SSD, Ubuntu 18.10
I am trying to implement multi authentication in `laravel5.2`. I am following [this article](http://saravanan.tomrain.com/multiauth-in-laravel-5-0/) My **Auth.php** <?php return [ 'multi' => array( 'user' => array( 'driver' => 'eloquent', 'model' => 'App\User', 'table' => 'users', ), 'admin' => array( 'driver' => 'database', 'model' => 'App\Admin', 'table' => 'tbl_admin_user', ) ), 'password' … | |
I am using `passport` in `laravel` for authenticating my users in APIs. I am able to authenticate different types of users from different tables and generating different token for them but the routes are not protected. For example. A user can access the routes like this Route::group(['middleware' => 'auth:api'], function … | |
Re: For pagination, this will help you [Pagination](http://www.phpeasystep.com/phptu/29.html) | |
I have a string like `string(8234) "<style>.{ margin-bottom:10px; float:left; display: inline-block; width:56%; text-align:left; padding-right:20px; padding-left:20px; } . > p { display: table-cell; height: 150px; vertical-align: middle; }..................</style>.................` I want to remove `<style>` tag and all its contents. I have tried $description = $product_info['description']; // the string with style tag $text … | |
I have a div with `width: 200px` and I am adding text in it dynamically, I want the text to fit in this div but the text is getting out. I have tried to change the font size on character count but it does not work in all cases, like … | |
Re: try the following in the function which closes the window or tab [CODE]unset($session_variable)[/CODE] you can also try destroy, session_destroy() methods | |
Hi all, I want to implement a page flip effect on y uploaded pdf file. like [Click Here](http://www.pressmo.com). I am uploading a pdf file and while viewing it, i want a page flip effect in it. Any help will be appriciated | |
**Problem** I need an jax pagination in YII, The problems are * its not showing the required results for the first time. ie. it is showing the complete result * When clicked on more, it again shows the complete result below that section as it is **What Needed** * i … | |
Re: what version of wamp you are using? and whats the problem with wamp? its not starting or not going online??? please give some details of your rpoblem | |
I have a form for editing a user record. Its updates the record for the first time but when i press the update button again, it shows me an empty screen and it unsets the picture as well. I cannot figure out what I am doign wrong Below is my … | |
Hi all I am making a website. I want to use linkshare on my website so that all the publishers registered with linkshare are listed on my website. Any suggestions? [Link Share](http://www.linkshare.com/) | |
| Re: Paste your code here and let the community look whats wrong with that. keep that in mind that "you cannot send emails from you local server unless and untill you have configured mercury" |
Re: 2 questions in 1 question :p There is no hard and fast rule for using the specific framework. But in my opinion, if you are a starter and you don't have experience in PHP, then you must start with [Code Igniter](http://ellislab.com/codeigniter) Reasons: * Strong Community * Extendable * Ease of … | |
Hi Any one ever wrked on live helper chat? [This](http://livehelperchat.com/) This is following template structure may be symfony or smarty and I am looking to change some form labels, but cannot figure out where to chage? Thanks in advance for help | |
Hi all I have a website about magazines and I want to upload the pdf file into it and create a flipping book effect for that uploaded file. I have seen many softwares but he problem is * I want to integrate this functionality in my website * I am … | |
Re: Please share what you get when you do ehco "<pre>; print_r($_POST); echo "</pre>";" | |
I have a search form with only one text field. The problem is that the width of that `text field` is not same. the style is form#index-table-form input[type="text"] { width: 106px; height: 24px; position: absolute; outline: none; right: 0; top: 6px; border: 1px solid #3772af; padding-left: 6px; padding-right: 24px; font-family: … | |
I am very new to wordpress. I am hivaing a small problem in my site. I am using a custom template for the home page, I have category filters on top, on mouseover it shows the total no. of models in that specific category. Well the problem is, I have … | |
Its been alot of mess to make the pagination in wordpress :( I have the pagination, but it renders the same page template file is ?php get_header(); ?> <?php global $my_query; global $paged; $paged = get_query_var('paged') ? get_query_var('paged') : 1; $temp = $my_query; $my_query = null; $args = array( 'post_type' … | |
Re: why you are having same conditions in your `else if's` ?? It can be done by nested ifs. do another check in your ifs i.e. from which currency to what currency?? | |
I have a search form, in which a user enters a keyword and it displays the results with the keyword in description as highlighted text, for highlighting, i have used another class on that keyword. problem is that, if there is a keyword in some hyperlink or in some <img> … | |
Re: have you created the object properly? i mean what is `$dbc` | |
I have the following table structure of my db: * tbl_project * tbl_employee * tbl_deliverable * user_to_deliverable as tbl_prjct and tbl_deliverable has 1-many relation, tbl_employee and tbl_deliverable have many-many relation so they are splited into user_to_deliverable table All i want is that a query to show project_name(from tbl_project), project's deliverables … | |
Re: if the user can enter the article, bydefault set its article status as 0 and then let the admin to view all the articles from where he csn change the status and where you have to show the articles, you can select the articles like `select * from article where … | |
Re: in any database, if primary key is once deleted, it can never be used again. To reset the primary key, you have to `TRUNCATE` your table which will result in loss of all the data. So i will not suggest you to reset the table | |
Re: We can host a wordpress blog on windows server it must have php and mysql installed in it. Or you can use some packages like xampp or wamp | |
i am having a problem, i downloaded the project from dev to my local, though it is running fine on dev but on local, it says me the following error Fatal error: Class 'DB' not found in F:\xampp\htdocs\timesheet\index.php on line 9 my index.php is <?php session_start(); error_reporting(1); include_once('classes/db.php'); include_once('classes/functions.php'); //========================================== … | |
Re: For uploading, there are 3 basic steps 1. Make your form to carry data like pictures and files to other page by `<enc-type=multipart/formdata>` 2. Check what you are getting when you post the form 3. Move the file to your respective directory by `move_uploaded_file()` I suggest you to make the … | |
i have an alert box which i want to show some icelandic text but its not showing it <script> function check() { alert("Þú verður að vera skráð/ur inn til þess að senda skilaboð"); } </script> it is showing the alert box but the text is messed up :( **Þú verður … | |