questions/web-development/laravel/page/4
Hello, Try this code: // option one: 'in' takes ...READ MORE
Hello @kartik, DB::raw() is used to make arbitrary SQL ...READ MORE
Hello @kartik, You can generate parentheses by passing ...READ MORE
Hello @kartik, Simply,we can use Model::whereNotNull('sent_at'); Or Model::whereRaw('sent_at is not null'); Thank ...READ MORE
Hello @kartik, This can be done with the ...READ MORE
Hello @kartik, Send data like this. $data = [ ...READ MORE
Hello @kartik, Try something like this: <?php $max = 100; $total ...READ MORE
Hello @kartik, You'll need to adjust your exception ...READ MORE
Hello, Never use 777 for directories on your ...READ MORE
Hello @kartik, Restart Beanstalk: sudo service beanstalkd restart ...READ MORE
Hello @kartik, You can simply use: Artisan::output() READ MORE
Hey @kartik, First you have to go to ...READ MORE
Hello @kartik, First Create seeder with artisan: php artisan make:seeder ...READ MORE
Hello, In Laravel 5.1 or higher you can ...READ MORE
Hello @kartik, ou can use strtok to get string before ...READ MORE
Hello @kartik, lists() turns the resulting collection into an ...READ MORE
Hello @kartik, You can specify custom error message ...READ MORE
Hello @kartik, You have a few ways of ...READ MORE
Hello @kartik, If you have a collection you ...READ MORE
Hello @kartik, Using the response helper. use Illuminate\Http\RedirectResponse; $response = $next($request); $response = ...READ MORE
Hello @kartik, To get action name, you need ...READ MORE
Hii, You can also tell Laravel you want ...READ MORE
Hello @kartik, Since Laravel uses config files to ...READ MORE
Hello @kartik, Try to use Form::button instead of ...READ MORE
Hello, You could create a custom Laravel directive. You ...READ MORE
Hello @kartik, You can calculate the distance in ...READ MORE
Hello @kartik, Delete an existing Model $user = User::find(1); $user->delete(); Deleting ...READ MORE
Hello, To create both of the created_at and updated_at columns: $t->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP')); $t->timestamp('updated_at')->default(DB::raw('CURRENT_TIMESTAMP on update ...READ MORE
Hello @kartik, find this line in php.ini : ;extension=soap then ...READ MORE
Hello @kartik, The best way to solve this ...READ MORE
Hii, For Laravel 5, In the tests directory there should ...READ MORE
Hello @kartik, Try the follwing snippet: nano ~/.bash_profile And ...READ MORE
Hello @kartik, Simply running npm install solved it for ...READ MORE
Hello @kartik, You should create a new migration ...READ MORE
Hello @kartik, You need to import your model ...READ MORE
Hello @kartik, There has been a couple of ...READ MORE
Hello @kartik, Try using this code: public function up() ...READ MORE
Hii @kartik, Extend Blade by creating a push once directive as ...READ MORE
Hello @kartik, You could try this: public function testStoreAction() { ...READ MORE
Hello @kartik, I had a problem with the ...READ MORE
Hello @kartik, The code below solved my problem: $messages ...READ MORE
Try this: Suppose you have the following tables ...READ MORE
Hello @kartik, run rm -rf /usr/local/lib/node_modules/npm and then re-install ...READ MORE
Hello @kartik, You can just use the built ...READ MORE
Hello @kartik, Just add ->where('id', '[0-9]+') to route where you ...READ MORE
Hello @kartik, If you have the token in ...READ MORE
Hello @kartik, You can try something like this DB::select('exec ...READ MORE
Hello, You can override the static label method ...READ MORE
Hello, You can first refer how to Create controller through ...READ MORE
Hii, You need to pass it using use. Cache::remember('thumb-'.$hash, 15, ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.