Tag : Input
ItSolutionStuff.com have tutorials for Input tag, here you can study articles of Input tag, Input tag posts collection, most popular and useful tutorials of Input tag, here you can find list of all relevant posts and example about Input tag, we have lists of tutorials and examples about Input tag. very simple and quick example collection of Latest Input tag.
If you are work on Codeigniter application and you require to get client ip address then you can get easy. you don't need to use $_SERVER variable like native PHP, but Codeigniter provide $this->input. you can fetch easy using following example:
<strong>Example:</strong>
<pre>
$ip = $this->input->ip_address();
print_r($ip);
</pre>
Most of the time we require to check specific element is exists or not in javascript. but jquery provide length() method that can help to check element is exists or not. If you are new and want to do this then see bellow example:
<strong class="example">Example:</strong>
<pre class="prettyprint lang-js">
<script type="text/javascript">
$(document).ready(function(){
if ($('.image').length) {
console.log('yes, Image class is exists.');
} else {
console.log('sorry, Image class is not exists.');
}
});
</script>
</pre>
When i start to work on Laravel 5.2 at that time i fetch this problem "Class 'Input' not found". When i copy my old controller code from laravel 5.1 version that time i found this issue, but i also could use Input insted to Request but i want to use Input as it is. But at last found solution. you have to just use following aliase on your controller.
<pre>
use Illuminate\Support\Facades\Input as Input
</pre>
If you want to get Query string value then you can get using Request Facade OR Input Facade in larave 5. But if you was working native PHP then we can get $_GET method. In following example you can easily get parameter value.
<strong class="example">URL Example:</strong>
<pre>http://text.com/wall?id=23&name=hdtopi</pre>
In above query string, you want to get query string value for example id and name. you can get through bellow example.
<strong class="example">Route Example:</strong>
<pre>Route::get('wall', 'WallController@wall');</pre>
<strong class="example">Controller Example:</strong>
<pr.....
How to get location information from ip address in Laravel ?
Open Post
How to use groupby having with DB::raw in Laravel Query Builder?
Open Post
How to create custom scrollbar using jquery mcustomscrollbar plugin ?
Open Post
iOS 7 style switches for checkboxes example using switchery JS
Open Post
How to install laravel framework on windows xampp server from scratch?
Open Post
PHP Script - Login with Facebook using facebook-php-sdk and MySQL example with demo
Open Post