Displaying only the data that that particular user input

I have a table name 'sales'. All the sales data been stored there. There are also 3 users for my system; Staff, Master Stockist and Stockist. Im trying to display th...
afoysal afoysal
3

Ternery operator in Blade template

My code is like below where I am getting error {{ $campaigns->count()? ($campaigns->count() < 20 ? $campaigns->count():20):0 }}...
hjortur17 hjortur17
0

For loop through array

Hi, how could I run through an array with objects and for each add an data from the object to another array? This is the array: selectedServices:Array...
iPurpl3x iPurpl3x
3

Query doesn't get executed when using orderByRaw()

I'm rather new to Laravel (ex frontend dev here) and today I've run into my first issue that I cannot figure out. So I'm running a query on my User mode...
chrisgrim chrisgrim
2

How to store an object with two sets of data in one Mysql Column?

Hi, I am playing around with elastic search, primarily geo location searches...
SUVINDRAN SUVINDRAN
2

Auto fill input after selecting value from dropdown

Im having trouble to retrieve data into input box right after user select from dropdown. Any suggestion? I'm able to retrieve data in dropdown list but after selected value...
deladels deladels
3

How to refactor my code using the DRY Priniciple

So I am Working on a project and I have gotten to a point where I have noticed I've been repeating myself. I learned about the DRY Principle after some research but can't s...
adhik13th adhik13th
2

how to create download button on datatables yajra

I have a table data and i using datatables yajra . its show normally , and i add Button download to download file . this file type is Pdf , and saved in database . i trying...
davy_yg davy_yg
1

Queues

Hello, I am reading this ref: https://laravel.com/docs/6.x/queues...
afoysal afoysal
3

Same function like ::find($id)

I have a condition in controller like below if($id == 'all') { $category = Category::get(); // I am getting error with result of this line...
opheliadesign opheliadesign
6

Gaming Mouse === Working Mouse?

Hey everyone, So, I was on vacation with a little laptop and the trackpad was driving me insane. I decided to invest in a quality mouse and started browsing an elect...
Tips
6
36
laravelhelpme laravelhelpme
9

After Copying a Laravel project Blade views not reflecting changes

Hi I copied a whole Laravel project folder to a new one: old_project to new_project (as I did a lot of times to keep versioning). But now after that any changes to new proj...
Laravel
9
121
thebigk thebigk
5

Database Design for LinkedIn like User Profiles

I'm currently designing database to let users have detailed profiles like LinkedIn. I'm however stuck at making way for multiple degrees / schools / work experiences. I sta...
BossPogs BossPogs
18

Print Ticket after Adding a Data

Good day pips. I am struggling on printing after I click create. When I click the create button, it will add to the database and after it will print the ticket....
Laravel
18
223
davy_yg davy_yg
2

Newsletter

Hello, I cannot understand this script: public function preview(Newsletters $newsletter) { $markdown = new Markdown(view(), config('mail.markd...
davy_yg davy_yg
1

Packages

Hello, I am checking this manual: https://laravel.com/docs/6.x/packages...
hafixihe hafixihe
1

Change auths table

Hello, guys, I want to use admins table. Now using users table by default in Laravel. Auth:: attempt method with "$userdata" credential always stores in us...
hafixihe hafixihe
2

Sort by variable in function, how does this work?

I get undefined variable inside a function of this query. How can I make this work? $sortby = $request->get('sortby'); $products = Product::...

How to insert json data in sql?

Please tell me the best way to insert json data in sql table column ....
SGUserFace SGUserFace
4

CREATED_AT by country

How can I print date of CREATED_AT column by the country of the user?...
kankai kankai
2

Bootstrap datepicker

Hi guys, I have a issue when i use bootstrap datepicker change date format to 'dd/mm/yyyy'. It will return 1970-01-01, i guess it get wrong timestamp format so it re...
hninoowailwin hninoowailwin
1

How to set Cron run command

I run the following text in Cron . This command run in every 21:50 hour but 00:50 hour auto run again . Why? /21*/usr/bin/php /var/www/html/artisan...
BossPogs BossPogs
1

Print Invoice Plugin in Laravel

Hello do you have any suggestions of any print invoice/receipt plugin in Laravel? Not thru PDF but print to printer. Like in the grocery after it pay it print the receipt....
davy_yg davy_yg
4

Helpers

I would take this as an example: use Illuminate\Support\Str; $contains = Str::contains('This is my name', 'my'); // true Is Str the class...

Tired: How to append previous ajax data on back button press | history.js

I want to check before ajax call, whether cache version of the page is available or not. current code fire-new ajax on every click. if available append data else call load_...
davy_yg davy_yg
5

middleware

use App\Post; Route::put('/post/{post}', function (Post $post) { // The current user may update the post... })->middleware('can:update,post');...
samair samair
1

laravel.password_resets' doesn't exist

laravel 5.8 hello , i am facing issue when i click on forgot password this table dont exists i have created make:auth and database table came up are migrated as well but st...
packy packy
2

Do you need a Roles package?

I have always wondered this. In the last 5 apps I have done there are really only 2 roles: admin and subscriber. There are never any permissions...
CliffordJames CliffordJames
7

Laravel Excel export multiple sheets to xlsx and pdf (landscape)

Hi, I've got a Laravel Excel export with multiple sheets which I need to export as a xlsx and pdf, but the pdf needs to be in landscape orientation. Does anyone know...
Omda Omda
6

How can I know in which component I was there

I am working with vue js, and I have darggable component items, I generated draggable component using for loop to display component, so how can i detected in which componen...
Vue
6
59
zefex zefex
3

Convert this SQL to Laravel

I have written this SQL and now I need to convert it to Laravel Query Builder. The idea is that I can get the age of a date field. I did it by using the...
arketekt arketekt
2

Don't Touch!

Hi everyone. I'm just getting started with Spark, I watched the laracasts on Spark and reading along here in the discussion forums. I'm new to Laravel in general but I beli...
Spark
2
36
gustavocassoto gustavocassoto
1

JWT TOKEN WEB APP

Hi guys, Im new on JWT Auth and I'm having a problem. I'm using blade template and simple Ajax requisitions to make the application. I did the login controlle...
zhiyong zhiyong
11

designate connection for password_resets table other than default?

Hi, The title pretty much sums the question. If I want to set up a password_resets table in a different database, how can I do that? For users table, this can be eas...
Laravel
11
38
henryoladj henryoladj
1

How to get Laravel Project XML SItemap

I want to know how i can get a sitemap from a laravel project. xml sitemap?...
Create a New Discussion Button